old-cross-binutils/ld/testsuite/ld-frv/fdpic-shared-6.d
Alexandre Oliva aee6f5b4bd bfd/ChangeLog:
* elf-bfd.h (struct elf_backend_data): Added
elf_backend_omit_section_dynsym.
(_bfd_elf_link_omit_section_dynsym): Declare.
* elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
(elf_backend_omit_section_dynsym): Use it for frvfdpic.
* elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
(_bfd_elf_link_renumber_dynsyms): ... this function.
* elfxx-target.h (elf_backend_omit_section_dynsym): Default to
_bfd_elf_link_omit_section_dynsym).
(elfNN_bed): Added elf_backend_omit_section_dynsym.
ld/ChangeLog:
* emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
ld/testsuite/ChangeLog:
* ld-frv/fdpic-pie-1.d: Adjust for pie-specific link script.
* ld-frv/fdpic-pie-2.d: Likewise.
* ld-frv/fdpic-pie-6.d: Likewise.
* ld-frv/fdpic-pie-7.d: Likewise.
* ld-frv/fdpic-pie-8.d: Likewise.
* ld-frv/fdpic-shared-1.d: Likewise.
* ld-frv/fdpic-shared-2.d: Likewise.
* ld-frv/fdpic-shared-3.d: Likewise.
* ld-frv/fdpic-shared-4.d: Likewise.
* ld-frv/fdpic-shared-5.d: Likewise.
* ld-frv/fdpic-shared-6.d: Likewise.
* ld-frv/fdpic-shared-7.d: Likewise.
* ld-frv/fdpic-shared-8.d: Likewise.
* ld-frv/fdpic-shared-local-2.d: Likewise.
* ld-frv/fdpic-shared-local-8.d: Likewise.
2004-06-21 14:45:42 +00:00

74 lines
2.2 KiB
Makefile

#name: FRV uClinux PIC relocs to weak undefined symbols, shared linking
#source: fdpic6.s
#objdump: -DR -j .text -j .data -j .got -j .plt
#as: -mfdpic
#ld: -shared --defsym WD1=D6 --version-script fdpic6.ldv
.*: file format elf.*frv.*
Disassembly of section \.plt:
0000037c <\.plt>:
37c: 00 00 00 08 add\.p gr0,gr8,gr0
380: c0 1a 00 06 bra 398 <F6-0x10>
384: 00 00 00 00 add\.p gr0,gr0,gr0
388: c0 1a 00 04 bra 398 <F6-0x10>
38c: 00 00 00 10 add\.p gr0,gr16,gr0
390: c0 1a 00 02 bra 398 <F6-0x10>
394: 00 00 00 18 add\.p gr0,gr24,gr0
398: 88 08 f1 40 ldd @\(gr15,gr0\),gr4
39c: 80 30 40 00 jmpl @\(gr4,gr0\)
3a0: 9c cc ff f0 lddi @\(gr15,-16\),gr14
3a4: 80 30 e0 00 jmpl @\(gr14,gr0\)
Disassembly of section \.text:
000003a8 <F6>:
3a8: fe 3f ff fe call 3a0 <F6-0x8>
3ac: 80 40 f0 0c addi gr15,12,gr0
3b0: 80 fc 00 24 setlos 0x24,gr0
3b4: 80 f4 00 20 setlo 0x20,gr0
3b8: 80 f8 00 00 sethi hi\(0x0\),gr0
3bc: 80 40 f0 10 addi gr15,16,gr0
3c0: 80 fc 00 18 setlos 0x18,gr0
3c4: 80 f4 00 1c setlo 0x1c,gr0
3c8: 80 f8 00 00 sethi hi\(0x0\),gr0
3cc: 80 40 ff f8 addi gr15,-8,gr0
3d0: 80 fc ff e8 setlos 0xffffffe8,gr0
3d4: 80 f4 ff e0 setlo 0xffe0,gr0
3d8: 80 f8 ff ff sethi 0xffff,gr0
3dc: 80 f4 ff d0 setlo 0xffd0,gr0
3e0: 80 f8 ff ff sethi 0xffff,gr0
3e4: 80 f4 00 14 setlo 0x14,gr0
3e8: 80 f8 00 00 sethi hi\(0x0\),gr0
Disassembly of section \.data:
00004480 <D6>:
\.\.\.
4480: R_FRV_32 WD0
4484: R_FRV_FUNCDESC WFb
4488: R_FRV_32 WFb
Disassembly of section \.got:
00004490 <_GLOBAL_OFFSET_TABLE_-0x20>:
4490: 00 00 03 98 sdiv\.p gr0,gr24,gr0
4490: R_FRV_FUNCDESC_VALUE WF9
4494: 00 00 00 00 add\.p gr0,gr0,gr0
4498: 00 00 03 90 sdiv\.p gr0,gr16,gr0
4498: R_FRV_FUNCDESC_VALUE WF8
449c: 00 00 00 00 add\.p gr0,gr0,gr0
44a0: 00 00 03 88 sdiv\.p gr0,gr8,gr0
44a0: R_FRV_FUNCDESC_VALUE WF0
44a4: 00 00 00 00 add\.p gr0,gr0,gr0
44a8: 00 00 03 80 sdiv\.p gr0,gr0,gr0
44a8: R_FRV_FUNCDESC_VALUE WF7
44ac: 00 00 00 00 add\.p gr0,gr0,gr0
000044b0 <_GLOBAL_OFFSET_TABLE_>:
\.\.\.
44bc: R_FRV_32 WF1
44c0: R_FRV_FUNCDESC WF4
44c4: R_FRV_32 WD2
44c8: R_FRV_FUNCDESC WF5
44cc: R_FRV_FUNCDESC WF6
44d0: R_FRV_32 WF3
44d4: R_FRV_32 WF2