diff options
author | Alan Modra <amodra@gmail.com> | 2015-04-21 19:18:24 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2015-04-23 09:49:19 +0930 |
commit | a27e685fa0a6480bdb07e3be359558524cec89b7 (patch) | |
tree | 770bec6f2f916fac7292a36d2ff3a9bc4c6648b2 /ld/testsuite/ld-powerpc/defsym.d | |
parent | 19947f5fbb8f9153d9681ebc9981cc7bb056e741 (diff) | |
download | gdb-a27e685fa0a6480bdb07e3be359558524cec89b7.zip gdb-a27e685fa0a6480bdb07e3be359558524cec89b7.tar.gz gdb-a27e685fa0a6480bdb07e3be359558524cec89b7.tar.bz2 |
Align .TOC. for PowerPC64
This change, with prerequisite 0e5fabeb, provides a toc base aligned
to 256 bytes rather than 8 bytes. This is necessary for a minor gcc
optimisation, allowing use of d-form instructions to correctly access
toc-relative items larger than 8 bytes.
bfd/
* elf64-ppc.c (TOC_BASE_ALIGN): Define.
(ppc64_elf_next_toc_section): Align multi-got toc base.
(ppc64_elf_set_toc): Likewise initial toc base and .TOC. symbol.
ld/
* emulparams/elf64ppc.sh (GOT): Align.
ld/testsuite/
* ld-powerpc/ambiguousv1b.d: Update for aligned .got.
* ld-powerpc/defsym.d: Likewise.
* ld-powerpc/elfv2-2exe.d: Likewise.
* ld-powerpc/elfv2exe.d: Likewise.
* ld-powerpc/elfv2so.d: Likewise.
* ld-powerpc/relbrlt.d: Likewise.
* ld-powerpc/tls.g: Likewise.
* ld-powerpc/tlsexe.d: Likewise.
* ld-powerpc/tlsexe.g: Likewise.
* ld-powerpc/tlsexe.r: Likewise.
* ld-powerpc/tlsexetoc.d: Likewise.
* ld-powerpc/tlsexetoc.g: Likewise.
* ld-powerpc/tlsexetoc.r: Likewise.
* ld-powerpc/tlsso.d: Likewise.
* ld-powerpc/tlsso.g: Likewise.
* ld-powerpc/tlsso.r: Likewise.
* ld-powerpc/tlstoc.g: Likewise.
* ld-powerpc/tlstocso.d: Likewise.
* ld-powerpc/tlstocso.g: Likewise.
* ld-powerpc/tlstocso.r: Likewise.
* ld-powerpc/tocopt.d: Likewise.
* ld-powerpc/tocopt2.d: Likewise.
* ld-powerpc/tocopt3.d: Likewise.
* ld-powerpc/tocopt4.d: Likewise.
* ld-powerpc/tocopt5.d: Likewise.
Diffstat (limited to 'ld/testsuite/ld-powerpc/defsym.d')
-rw-r--r-- | ld/testsuite/ld-powerpc/defsym.d | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/ld/testsuite/ld-powerpc/defsym.d b/ld/testsuite/ld-powerpc/defsym.d index 1e5b567..adff02b 100644 --- a/ld/testsuite/ld-powerpc/defsym.d +++ b/ld/testsuite/ld-powerpc/defsym.d @@ -8,19 +8,19 @@ Disassembly of section \.text: 0+100000b0 <_start>: - 100000b0: (15 00 00 48|48 00 00 15) bl 100000c4 <(foo|bar)\+0x8> - 100000b4: (11 00 00 48|48 00 00 11) bl 100000c4 <(foo|bar)\+0x8> - 100000b8: (00 00 00 60|60 00 00 00) nop + 100000b0: (48 00 00 15|15 00 00 48) bl 100000c4 <(foo|bar)\+0x8> + 100000b4: (48 00 00 11|11 00 00 48) bl 100000c4 <(foo|bar)\+0x8> + 100000b8: (60 00 00 00|00 00 00 60) nop 0+100000bc <(foo|bar)>: - 100000bc: (02 10 40 3c|3c 40 10 02) lis r2,4098 - 100000c0: (c8 80 42 38|38 42 80 c8) addi r2,r2,-32568 - 100000c4: (20 00 80 4e|4e 80 00 20) blr + 100000bc: (3c 40 10 02|02 10 40 3c) lis r2,4098 + 100000c0: (38 42 80 00|00 80 42 38) addi r2,r2,-32768 + 100000c4: (4e 80 00 20|20 00 80 4e) blr Disassembly of section \.data: 0+100100c8 .*: - 100100c8: (bc 00 00 10|00 00 00 00) .* - 100100cc: (00 00 00 00|10 00 00 bc) .* - 100100d0: (bc 00 00 10|00 00 00 00) .* - 100100d4: (00 00 00 00|10 00 00 bc) .* + 100100c8: (00 00 00 00|bc 00 00 10) .* + 100100cc: (10 00 00 bc|00 00 00 00) .* + 100100d0: (00 00 00 00|bc 00 00 10) .* + 100100d4: (10 00 00 bc|00 00 00 00) .* |