Return FALSE on unresolvable relocation
* elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE on unresolvable relocation.
This commit is contained in:
parent
d5abbdf3c1
commit
a040981f62
|
@ -1,3 +1,8 @@
|
||||||
|
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
|
||||||
|
on unresolvable relocation.
|
||||||
|
|
||||||
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
2012-06-29 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
* archive.c (_bfd_compute_and_write_armap): Simplify global
|
* archive.c (_bfd_compute_and_write_armap): Simplify global
|
||||||
|
|
|
@ -4210,13 +4210,16 @@ elf_x86_64_relocate_section (bfd *output_bfd,
|
||||||
&& h->def_dynamic)
|
&& h->def_dynamic)
|
||||||
&& _bfd_elf_section_offset (output_bfd, info, input_section,
|
&& _bfd_elf_section_offset (output_bfd, info, input_section,
|
||||||
rel->r_offset) != (bfd_vma) -1)
|
rel->r_offset) != (bfd_vma) -1)
|
||||||
(*_bfd_error_handler)
|
{
|
||||||
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
|
(*_bfd_error_handler)
|
||||||
input_bfd,
|
(_("%B(%A+0x%lx): unresolvable %s relocation against symbol `%s'"),
|
||||||
input_section,
|
input_bfd,
|
||||||
(long) rel->r_offset,
|
input_section,
|
||||||
howto->name,
|
(long) rel->r_offset,
|
||||||
h->root.root.string);
|
howto->name,
|
||||||
|
h->root.root.string);
|
||||||
|
return FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
do_relocation:
|
do_relocation:
|
||||||
r = _bfd_final_link_relocate (howto, input_bfd, input_section,
|
r = _bfd_final_link_relocate (howto, input_bfd, input_section,
|
||||||
|
|
Loading…
Reference in New Issue