diff options
author | Nathan Sidwell <nathan@codesourcery.com> | 2010-02-08 07:09:39 +0000 |
---|---|---|
committer | Nathan Sidwell <nathan@codesourcery.com> | 2010-02-08 07:09:39 +0000 |
commit | deddc40bec6db30c02fa73f1e83619bc62c87196 (patch) | |
tree | 9046011bbb73a01b5633dfd5d5ae80ea9fe829b1 /ld | |
parent | 46763423272ad989de7cec67954f0c083f0eb82b (diff) | |
download | gdb-deddc40bec6db30c02fa73f1e83619bc62c87196.zip gdb-deddc40bec6db30c02fa73f1e83619bc62c87196.tar.gz gdb-deddc40bec6db30c02fa73f1e83619bc62c87196.tar.bz2 |
bfd/
* elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
apuinfo sections, only scan input sections once and reuse the
buffer.
ld/testsuite/
* ld-powerpc/apuinfo-nul.s: New.
* ld-powerpc/apuinfo.rd: Add it.
* ld-powerpc/powerpc.exp: Likewise.
Diffstat (limited to 'ld')
-rw-r--r-- | ld/testsuite/ChangeLog | 16 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/apuinfo-nul.s | 10 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/apuinfo.rd | 1 | ||||
-rw-r--r-- | ld/testsuite/ld-powerpc/powerpc.exp | 2 |
4 files changed, 23 insertions, 6 deletions
diff --git a/ld/testsuite/ChangeLog b/ld/testsuite/ChangeLog index e3d20bf..e7c7f64 100644 --- a/ld/testsuite/ChangeLog +++ b/ld/testsuite/ChangeLog @@ -1,10 +1,16 @@ +2010-02-08 Nathan Sidwell <nathan@codesourcery.com> + + * ld-powerpc/apuinfo-nul.s: New. + * ld-powerpc/apuinfo.rd: Add it. + * ld-powerpc/powerpc.exp: Likewise. + 2010-02-01 Matthew Gretton-Dann <matthew.gretton-dann@arm.com> - * ld-arm/jump-reloc-veneers-long.d: New test. - * ld-arm/jump-reloc-veneers-short1.d: Likewise. - * ld-arm/jump-reloc-veneers-short2.d: Likewise. - * ld-arm/jump-reloc-veneers.s: Likewise. - * ld-arm/arm-elf.exp (armelftests): Run them. + * ld-arm/jump-reloc-veneers-long.d: New test. + * ld-arm/jump-reloc-veneers-short1.d: Likewise. + * ld-arm/jump-reloc-veneers-short2.d: Likewise. + * ld-arm/jump-reloc-veneers.s: Likewise. + * ld-arm/arm-elf.exp (armelftests): Run them. 2010-01-28 Nick Clifton <nickc@redhat.com> diff --git a/ld/testsuite/ld-powerpc/apuinfo-nul.s b/ld/testsuite/ld-powerpc/apuinfo-nul.s new file mode 100644 index 0000000..6b17142 --- /dev/null +++ b/ld/testsuite/ld-powerpc/apuinfo-nul.s @@ -0,0 +1,10 @@ + .text + nop + + # dummy empty apuinfo + # some other tools emit these + .section ".PPC.EMB.apuinfo" + .long 8 + .long 0 + .long 2 + .asciz "APUinfo" diff --git a/ld/testsuite/ld-powerpc/apuinfo.rd b/ld/testsuite/ld-powerpc/apuinfo.rd index e6321cd..7a27bc0 100644 --- a/ld/testsuite/ld-powerpc/apuinfo.rd +++ b/ld/testsuite/ld-powerpc/apuinfo.rd @@ -1,5 +1,6 @@ #source: apuinfo1.s #source: apuinfo2.s +#source: apuinfo-nul.s #as: -me500 #readelf: -x2 #target: powerpc-eabi* diff --git a/ld/testsuite/ld-powerpc/powerpc.exp b/ld/testsuite/ld-powerpc/powerpc.exp index fce9664..4c0038a 100644 --- a/ld/testsuite/ld-powerpc/powerpc.exp +++ b/ld/testsuite/ld-powerpc/powerpc.exp @@ -101,7 +101,7 @@ set ppcelftests { {"Reloc section order" "-melf32ppc -shared -z nocombreloc" "-a32" {reloc.s} {{objdump -hw reloc.d}} "reloc.so"} {"APUinfo section processing" "-melf32ppc" - "-a32 -me500" {apuinfo1.s apuinfo2.s} + "-a32 -me500" {apuinfo1.s apuinfo-nul.s apuinfo2.s} {{readelf -x2 apuinfo.rd}} "apuinfo"} {"TLS32 static exec" "-melf32ppc" "-a32" {tls32.s tlslib32.s} {{objdump -dr tls32.d} {objdump -sj.got tls32.g} |