aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-powerpc/aix52.exp
diff options
context:
space:
mode:
authorRichard Sandiford <rdsandiford@googlemail.com>2009-03-14 09:18:22 +0000
committerRichard Sandiford <rdsandiford@googlemail.com>2009-03-14 09:18:22 +0000
commit47dfb2ca058b165e333767f15a62c603830284dd (patch)
treea63bf6d8dcb639614b5a97e3471810ff6257b705 /ld/testsuite/ld-powerpc/aix52.exp
parent4cc02a022b59a6f9c6041c7ac993157db0fdd1dc (diff)
downloadgdb-47dfb2ca058b165e333767f15a62c603830284dd.zip
gdb-47dfb2ca058b165e333767f15a62c603830284dd.tar.gz
gdb-47dfb2ca058b165e333767f15a62c603830284dd.tar.bz2
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.
Diffstat (limited to 'ld/testsuite/ld-powerpc/aix52.exp')
-rw-r--r--ld/testsuite/ld-powerpc/aix52.exp5
1 files changed, 5 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/aix52.exp b/ld/testsuite/ld-powerpc/aix52.exp
index 41a2045..247b2d1 100644
--- a/ld/testsuite/ld-powerpc/aix52.exp
+++ b/ld/testsuite/ld-powerpc/aix52.exp
@@ -97,6 +97,11 @@ set aix52tests {
"" {aix-glink-1.s}
{{objdump {-D -j.text -j.data} aix-glink-1-SIZE.dd}}
"aix-glink-1.so"}
+
+ {"TOC test 1" "-shared -bE:aix-toc-1.ex"
+ "" {aix-toc-1a.s aix-toc-1b.s}
+ {{objdump -dr aix-toc-1-SIZE.dd}}
+ "aix-toc-1.so"}
}
foreach test $aix52tests {