mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
3df13c4a63
* libcoff-in.h (xcoff_tdata): Add a lineno_counts field. * libcoff.h: Regenerate. * xcofflink.c (xcoff_link_add_symbols): Record per-symbol line-number counts in the bfd's lineno_counts field. Don't keep per-csect line-number counts. (xcoff_sweep): Don't update per-csect line-number counts. (bfd_xcoff_size_dynamic_sections): Count the number of line-number entries in each output section. (xcoff_link_input_bfd): Get the number of line numbers from the bfd's lineno_counts field, rather than recalculating it from scratch. Fix the range check when updating C_BINCL and C_EINCL symbols. (_bfd_xcoff_bfd_final_link): Don't count the output line numbers here. Don't expect csects to have line-number counts. ld/testsuite/ * ld-powerpc/aix-lineno-1.s, ld-powerpc/aix-lineno-1.txt, ld-powerpc/aix-lineno-1a.dd, ld-powerpc/aix-lineno-1a.nd, ld-powerpc/aix-lineno-1b.dd, ld-powerpc/aix-lineno-1b.nd: New tests. * ld-powerpc/aix52.exp: Run them. Copy aix-lineno-1.txt to tmpdir.
25 lines
454 B
Plaintext
25 lines
454 B
Plaintext
|
|
.*
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0*10000000 <\.foo>:
|
|
Four
|
|
*10000000: 60 00 00 00 (oril r0,r0,0|nop)
|
|
and
|
|
*10000004: 60 00 00 00 (oril r0,r0,0|nop)
|
|
twenty
|
|
*10000008: 60 00 00 00 (oril r0,r0,0|nop)
|
|
blackbirds
|
|
*1000000c: 60 00 00 00 (oril r0,r0,0|nop)
|
|
baked
|
|
*10000010: 60 00 00 00 (oril r0,r0,0|nop)
|
|
|
|
0*10000014 <\.main>:
|
|
in
|
|
a
|
|
*10000014: 4b ff ff ed bl 10000000 <\.foo>
|
|
pie
|
|
*10000018: 60 00 00 00 (oril r0,r0,0|nop)
|