bfd/
commit2bc16fa118ab4f519b21489539c048b4f3c475ec
authorRichard Sandiford <rsandifo@nildram.co.uk>
Sat, 14 Mar 2009 09:35:06 +0000 (14 09:35 +0000)
committerRichard Sandiford <rsandifo@nildram.co.uk>
Sat, 14 Mar 2009 09:35:06 +0000 (14 09:35 +0000)
tree3281f2bb0cf7d35b572d40d6a0df173080c6ede5
parentb71ecbc1ef4812d6343919d52b6aa7f86ff3acee
bfd/
* xcofflink.c (xcoff_mark_symbol_by_name): New function.
(bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
init and fini functions.  Do garbage collection for objects
without an entry point too.

ld/testsuite/
* ld-powerpc/aix-gc-1.s, ld-powerpc/aix-gc-1.ex,
ld-powerpc/aix-gc-1-32.dd, ld-powerpc/aix-gc-1-64.dd,
ld-powerpc/aix-weak-1-gcdso.dnd, ld-powerpc/aix-weak-1-gcdso.hd,
ld-powerpc/aix-weak-1-gcdso.nd: New tests.
* ld-powerpc/aix52.exp: Run them.
bfd/ChangeLog
bfd/xcofflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/aix-gc-1-32.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-gc-1-64.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-gc-1.ex [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-gc-1.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-weak-1-gcdso.dnd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-weak-1-gcdso.hd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-weak-1-gcdso.nd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix52.exp