OSDN Git Service

bfd/
authorrsandifo <rsandifo>
Sat, 14 Mar 2009 09:18:22 +0000 (09:18 +0000)
committerrsandifo <rsandifo>
Sat, 14 Mar 2009 09:18:22 +0000 (09:18 +0000)
commitf360bcca12ac7a4664652251694e4ece91e4f41a
tree76c5e62b5ecb3adce237a9a07a08adbc72de1f58
parent69d8ad0605d65fa23f3f8a439050817e260a7807
bfd/
* xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
creating a descriptor.
(xcoff_sweep): Don't mark toc_section unless it's needed.
(bfd_xcoff_size_dynamic_sections): Skip the toc_section
when marking every bfd.
(xcoff_link_input_bfd): Skip all TOC anchors.
(xcoff_toc_section_p, xcoff_find_tc0): New functions.
(_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
to -1; call xcoff_find_tc0 instead.

ld/testsuite/
* ld-powerpc/aix-toc-1.ex, ld-powerpc/aix-toc-1a.s,
ld-powerpc/aix-toc-1b.s, ld-powerpc/aix-toc-1-32.dd,
ld-powerpc/aix-toc-1-64.dd: New tests.
* ld-powerpc/aix52.exp: Run them.
bfd/ChangeLog
bfd/xcofflink.c
ld/testsuite/ChangeLog
ld/testsuite/ld-powerpc/aix-toc-1-32.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-toc-1-64.dd [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-toc-1.ex [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-toc-1a.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix-toc-1b.s [new file with mode: 0644]
ld/testsuite/ld-powerpc/aix52.exp