binutils-gdb/ld/testsuite/ld-i386
H.J. Lu 7b7e7f1da2 Check symbol defined by assignment in linker script
Symbol symbol defined by an assignment in a linker script has type
bfd_link_hash_new.  elf_i386_convert_load and elf_x86_64_convert_load
should check bfd_link_hash_new to see if a symbol is defined by a linker
script.

bfd/

	PR ld/19175
	* elf32-i386.c (elf_i386_convert_load): Check bfd_link_hash_new
	instead of calling bfd_link_get_defined_symbol.
	* elf64-x86-64.c (elf_x86_64_convert_load): Likewise.  Skip
	relocation overflow for bfd_link_hash_new.
	* linker.c (bfd_link_get_defined_symbol): Removed.
	* bfd-in2.h: Regenerated.

ld/testsuite/

	PR ld/19175
	* ld-i386/i386.exp: Run pr19175.
	* ld-x86-64/x86-64.exp: Likewise.
	* ld-i386/pr19175.d: New file.
	* ld-i386/pr19175.s: Likewise.
	* ld-i386/pr19175.t: Likewise.
	* ld-x86-64/pr19175.d: Likewise.
	* ld-x86-64/pr19175.s: Likewise.
	* ld-x86-64/pr19175.t: Likewise.
2015-10-26 16:32:55 -07:00
..
abs-iamcu.d
abs.d
abs.s
alloc.d
alloc.s
alloc.t
branch1.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
branch1.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
call1.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
call1.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
call2.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
call2.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
call3.s Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3a.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3b.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3c.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3d.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3e.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3f.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3g.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
call3h.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
combreloc.d
combreloc.s
compressed1.d
compressed1.s
copyreloc-lib.c
copyreloc-main1.rd
copyreloc-main2.rd
copyreloc-main.out
copyreloc-main.S
discarded1.d
discarded1.s
discarded1.t
dummy.c
dummy.s
emit-relocs-nacl.rd
emit-relocs.rd
emit-relocs.s
export-class.exp
foo.s
got1.dd Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
got1.out Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
got1a.S Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
got1b.c Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
got1c.c Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
got1d.S Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
hidden1.d
hidden1.s
hidden2.d
hidden2.s
hidden3.d
hidden3.s
i386-export-class.rd
i386-export-class.xd
i386.exp Check symbol defined by assignment in linker script 2015-10-26 16:32:55 -07:00
iamcu-1.d
iamcu-2.d
iamcu-3.d
iamcu-4.d
jmp1.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
jmp1.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
jmp2.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
jmp2.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
lea1.s Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
lea1a.d Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
lea1b.d Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
lea1c.d Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
lea1d.d
lea1e.d
lea1f.d
load1-nacl.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
load1.d Add "-z call-nop=PADDING" option to ld 2015-10-22 04:56:39 -07:00
load1.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load2.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load2.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load3.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load3.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load4.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load4a.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load4b.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load5.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load5a.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load5b.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load6.d Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
load6.s Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
mov1.s Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
mov1a.d Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
mov1b.d Properly convert address load of __start_XXX/__stop_XXX 2015-10-26 08:11:55 -07:00
nogot1.d
nogot1.s
nogot2.d
nogot2.s
pcrel8.d
pcrel8.s
pcrel16.d
pcrel16.s
pcrel16abs.d
pcrel16abs.s
plt-lib.c
plt-main1.c
plt-main1.rd Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
plt-main2.c
plt-main2.rd
plt-main3.c
plt-main3.rd Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
plt-main4.c
plt-main4.rd Add R_386_GOT32X support to gas and ld 2015-10-22 04:47:07 -07:00
plt-main5.c
plt-main.out
plt-main.rd
plt-nacl.pd
plt-pic-nacl.pd
plt-pic.pd
plt-pic.s
plt.pd
plt.s
pltgot-1.d
pltgot-1.s
pltgot-2.d
pltlib.s
pr12570a.d
pr12570a.s
pr12570b.d
pr12570b.s
pr12627.d
pr12627.s
pr12627.t
pr12718.d
pr12718.s
pr12921.d
pr12921.s
pr13302.d
pr13302.s
pr14215.d
pr14215.s
pr17057.d
pr17057.s
pr17306a.s
pr17306b.s
pr17689.out
pr17689.rd
pr17689a.c
pr17689a.t
pr17689b.S
pr17689now.rd
pr17689ver.rd
pr17709-nacl.rd
pr17709.rd
pr17709a.s
pr17709b.s
pr17827.rd
pr17935-1.d
pr17935-1.s
pr17935-2.d
pr17935-2.s
pr18801.d Issue an error for read-only segment with dynamic IFUNC relocations 2015-08-13 04:31:38 -07:00
pr18801.s Issue an error for read-only segment with dynamic IFUNC relocations 2015-08-13 04:31:38 -07:00
pr18815.d Set EI_OSABI to ELFOSABI_GNU for local IFUNC symbols 2015-08-12 13:47:41 -07:00
pr18815.s Set EI_OSABI to ELFOSABI_GNU for local IFUNC symbols 2015-08-12 13:47:41 -07:00
pr18900.out Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr18900a.c Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr18900a.rd Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr18900b.c Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr18900b.rd Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr18900c.c Skip PLT for function pointer initialization 2015-09-01 05:06:33 -07:00
pr19031.out Create a PLT entry for R_386_PC32 in non-code sections 2015-09-30 08:45:13 -07:00
pr19031a.c Create a PLT entry for R_386_PC32 in non-code sections 2015-09-30 08:45:13 -07:00
pr19031b.S Create a PLT entry for R_386_PC32 in non-code sections 2015-09-30 08:45:13 -07:00
pr19031c.c Create a PLT entry for R_386_PC32 in non-code sections 2015-09-30 08:45:13 -07:00
pr19175.d Check symbol defined by assignment in linker script 2015-10-26 16:32:55 -07:00
pr19175.s Check symbol defined by assignment in linker script 2015-10-26 16:32:55 -07:00
pr19175.t Check symbol defined by assignment in linker script 2015-10-26 16:32:55 -07:00
protected1.d
protected1.s
protected2.d
protected2.s
protected3.d
protected3.s
protected4.d
protected4.s
protected5.d
protected5.s
protected6.s
protected6a.d
protected6b.d
reloc.d
reloc.s
start.s
tlsbin-nacl.rd
tlsbin.dd
tlsbin.rd
tlsbin.s
tlsbin.sd
tlsbin.td
tlsbindesc-nacl.rd
tlsbindesc.dd
tlsbindesc.rd
tlsbindesc.s
tlsbindesc.sd
tlsbindesc.td
tlsbinpic.s
tlsdesc-nacl.rd
tlsdesc.dd
tlsdesc.rd
tlsdesc.s
tlsdesc.sd
tlsdesc.td
tlsg.s
tlsg.sd
tlsgd1.dd
tlsgd1.s
tlsgd2.d
tlsgd2.s
tlsgdesc-nacl.rd
tlsgdesc.dd
tlsgdesc.rd
tlsgdesc.s
tlsie1.dd
tlsie1.s
tlsie2.d
tlsie2.s
tlsie3.d
tlsie3.s
tlsie4.d
tlsie4.s
tlsie5.d
tlsie5.s
tlsindntpoff.dd
tlsindntpoff.s
tlsld1.dd
tlsld1.s
tlslib.s
tlsnopic1.s
tlsnopic2.s
tlsnopic-nacl.rd
tlsnopic.dd
tlsnopic.rd
tlsnopic.sd
tlspic1.s
tlspic2.s
tlspic-nacl.rd
tlspic.dd
tlspic.rd
tlspic.sd
tlspic.td
tlspie1.d
tlspie1.s
tlspie2.d
tlspie2.s
vxworks1-lib.dd
vxworks1-lib.nd
vxworks1-lib.rd
vxworks1-lib.s
vxworks1-lib.td
vxworks1-static.d
vxworks1.dd
vxworks1.ld
vxworks1.rd
vxworks1.s
vxworks2-static.sd
vxworks2.s
vxworks2.sd
warn1.d
warn1.s
zero.s