OSDN Git Service

bfd/
authorrsandifo <rsandifo>
Sat, 14 Mar 2009 09:32:33 +0000 (09:32 +0000)
committerrsandifo <rsandifo>
Sat, 14 Mar 2009 09:32:33 +0000 (09:32 +0000)
commitcd2e006c0750ffadf142070b1de42b9d3e5ee2b8
treed8654d8c4c0c564ab07e61fbb11a5d8297c1c3e7
parente78c763cc67762a2a7b5438768f97077773db737
bfd/
* 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.
12 files changed:
bfd/ChangeLog
bfd/libcoff-in.h
bfd/libcoff.h
bfd/xcofflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/aix-lineno-1.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-lineno-1.txt [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-lineno-1a.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-lineno-1a.nd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-lineno-1b.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-lineno-1b.nd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix52.exp