mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
c6a8f6e0ed
* elf32-tic6x.c (elf32_tic6x_final_link): New function. (elf32_tic6x_merge_attributes): Do not warn for PID or PIC mismatch. Choose the lower of the two values. (bfd_elf32_bfd_final_link): New macro. ld/testsuite/ * ld-tic6x/shared-nopic.d: New test. * ld-tic6x/shared-nopid.d: New test. * ld-tic6x/attr-pid-21.d: Don't expect a warning; check readelf output instead. * ld-tic6x/attr-pid-12.d: Likewise. * ld-tic6x/attr-pic-01.d: Likewise. * ld-tic6x/attr-pic-10.d: Likewise. * ld-tic6x/attr-pid-01.d: Likewise. * ld-tic6x/attr-pid-10.d: Likewise. * ld-tic6x/attr-pid-02.d: Likewise. * ld-tic6x/attr-pid-20.d: Likewise. * ld-tic6x/got-reloc-inrange.d: Pass -mpic and -mpid options to gas.
16 lines
404 B
Makefile
16 lines
404 B
Makefile
#name: C6X GOT relocations, no overflow
|
|
#as: -mlittle-endian -mdsbt -mpic -mpid=near
|
|
#ld: -melf32_tic6x_le -Tdsbt-inrange.ld --dsbt-index 4 -shared
|
|
#source: got-reloc-global.s
|
|
#objdump: -dr
|
|
|
|
.*: *file format elf32-tic6x-le
|
|
|
|
|
|
Disassembly of section \.text:
|
|
|
|
10000000 <[^>]*>:
|
|
10000000:[ \t]+0700046e[ \t]+ldw \.D2T2 \*\+b14\(16\),b14
|
|
10000004:[ \t]+00ffff6c[ \t]+ldw \.D2T1 \*\+b14\(131068\),a1
|
|
[ \t]+...
|