diff options
author | Richard Sandiford <rdsandiford@googlemail.com> | 2009-03-14 09:35:06 +0000 |
---|---|---|
committer | Richard Sandiford <rdsandiford@googlemail.com> | 2009-03-14 09:35:06 +0000 |
commit | 7d504122ef2032b3e0d6973a4f4f138481c4b5c2 (patch) | |
tree | dfa07a68fffdd8cf41538e97576ee2a34f8b7c31 /ld/testsuite/ld-powerpc/aix-gc-1-32.dd | |
parent | 8602d4fea60dda606ad5e5e01e27f8f841120e15 (diff) | |
download | gdb-7d504122ef2032b3e0d6973a4f4f138481c4b5c2.zip gdb-7d504122ef2032b3e0d6973a4f4f138481c4b5c2.tar.gz gdb-7d504122ef2032b3e0d6973a4f4f138481c4b5c2.tar.bz2 |
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.
Diffstat (limited to 'ld/testsuite/ld-powerpc/aix-gc-1-32.dd')
-rw-r--r-- | ld/testsuite/ld-powerpc/aix-gc-1-32.dd | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/ld/testsuite/ld-powerpc/aix-gc-1-32.dd b/ld/testsuite/ld-powerpc/aix-gc-1-32.dd new file mode 100644 index 0000000..324b298 --- /dev/null +++ b/ld/testsuite/ld-powerpc/aix-gc-1-32.dd @@ -0,0 +1,67 @@ + +.* + + +Disassembly of section \.text: + +10000000 <\.init_function>: +10000000: 80 22 00 00 l r1,0\(r2\) + +10000004 <\.fini_function>: +10000004: 80 22 00 04 l r1,4\(r2\) + +10000008 <\.exported_global>: +10000008: 48 00 00 09 bl 10000010 <\.indirect2> + +1000000c <\.indirect1>: +1000000c: 81 08 00 04 l r8,4\(r8\) + +10000010 <\.indirect2>: +10000010: 81 08 00 08 l r8,8\(r8\) + +10000014 <\.indirect3>: +10000014: 81 08 00 0c l r8,12\(r8\) + +Disassembly of section \.data: + +20000000 <block>: +# Pointer to indirect3. +20000000: 20 00 00 98 .* +20000004: 11 22 33 44 .* + +20000008 <__rtinit>: +#... + +20000068 <exported_global>: +20000068: 10 00 00 08 .* +2000006c: 20 00 00 a4 .* +20000070: 00 00 00 00 .* + +20000074 <init_function>: +20000074: 10 00 00 00 .* +20000078: 20 00 00 a4 .* +2000007c: 00 00 00 00 .* + +20000080 <indirect1>: +20000080: 10 00 00 0c .* +20000084: 20 00 00 a4 .* +20000088: 00 00 00 00 .* + +2000008c <fini_function>: +2000008c: 10 00 00 04 .* +20000090: 20 00 00 a4 .* +20000094: 00 00 00 00 .* + +20000098 <indirect3>: +20000098: 10 00 00 14 .* +2000009c: 20 00 00 a4 .* +200000a0: 00 00 00 00 .* + +200000a4 <TOC>: +# TOC entry for indirect1. +200000a4: 20 00 00 80 .* + +200000a8 <block>: +# TOC entry for block. +200000a8: 20 00 00 00 .* +200000ac: 00 00 00 00 .* |