mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
45965137be
This adds support for "func@localentry", an expression that returns the ELFv2 local entry point address of function "func". I've excluded dynamic relocation support because that obviously would require glibc changes. include/elf/ * ppc64.h (R_PPC64_REL24_NOTOC, R_PPC64_ADDR64_LOCAL): Define. bfd/ * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_ADDR64_LOCAL entry. (ppc64_elf_reloc_type_lookup): Support R_PPC64_ADDR64_LOCAL. (ppc64_elf_check_relocs): Likewise. (ppc64_elf_relocate_section): Likewise. * Add BFD_RELOC_PPC64_ADDR64_LOCAL. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate. gas/ * config/tc-ppc.c (ppc_elf_suffix): Support @localentry. (md_apply_fix): Support R_PPC64_ADDR64_LOCAL. ld/testsuite/ * ld-powerpc/elfv2-2a.s, ld-powerpc/elfv2-2b.s: New files. * ld-powerpc/elfv2-2exe.d, ld-powerpc/elfv2-2so.d: New files. * ld-powerpc/powerpc.exp: Run new test. elfcpp/ * powerpc.h (R_PPC64_REL24_NOTOC, R_PPC64_ADDR64_LOCAL): Define. gold/ * powerpc.cc (Target_powerpc::Scan::local, global): Support R_PPC64_ADDR64_LOCAL. (Target_powerpc::Relocate::relocate): Likewise.
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
#source: elfv2-2a.s
|
|
#source: elfv2-2b.s
|
|
#as: -a64
|
|
#ld: -melf64ppc -e f1
|
|
#objdump: -dr
|
|
|
|
.*
|
|
|
|
Disassembly of section \.text:
|
|
|
|
0+10000078 <f1>:
|
|
.*: (3c 40 10 01|01 10 40 3c) lis r2,4097
|
|
.*: (38 42 80 78|78 80 42 38) addi r2,r2,-32648
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|
|
0+10000084 <f2>:
|
|
.*: (38 4c 7f f4|f4 7f 4c 38) addi r2,r12,32756
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|
|
.*: (00 00 00 00|78 00 00 10) .*
|
|
.*: (10 00 00 78|00 00 00 00) .*
|
|
.*: (00 00 00 00|80 00 00 10) .*
|
|
.*: (10 00 00 80|00 00 00 00) .*
|
|
.*: (00 00 00 00|84 00 00 10) .*
|
|
.*: (10 00 00 84|00 00 00 00) .*
|
|
.*: (00 00 00 00|88 00 00 10) .*
|
|
.*: (10 00 00 88|00 00 00 00) .*
|
|
.*: (00 00 00 00|cc 00 00 10) .*
|
|
.*: (10 00 00 cc|00 00 00 00) .*
|
|
.*: (00 00 00 00|d4 00 00 10) .*
|
|
.*: (10 00 00 d4|00 00 00 00) .*
|
|
.*: (00 00 00 00|d8 00 00 10) .*
|
|
.*: (10 00 00 d8|00 00 00 00) .*
|
|
.*: (00 00 00 00|d8 00 00 10) .*
|
|
.*: (10 00 00 d8|00 00 00 00) .*
|
|
|
|
0+100000cc <f3>:
|
|
.*: (3c 40 10 01|01 10 40 3c) lis r2,4097
|
|
.*: (38 42 80 78|78 80 42 38) addi r2,r2,-32648
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|
|
|
|
0+100000d8 <f4>:
|
|
.*: (4e 80 00 20|20 00 80 4e) blr
|