mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-26 22:07:58 +08:00
* elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>:
Ignore relocations against r_symndx == 0.
This commit is contained in:
@ -1,3 +1,8 @@
|
|||||||
|
2003-04-09 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
|
* elf64-alpha.c (elf64_alpha_relocate_section) <R_ALPHA_GPREL32>:
|
||||||
|
Ignore relocations against r_symndx == 0.
|
||||||
|
|
||||||
2003-04-09 H.J. Lu <hjl@gnu.org>
|
2003-04-09 H.J. Lu <hjl@gnu.org>
|
||||||
|
|
||||||
* elf64-alpha.c (elf64_alpha_relocate_section): Don't return
|
* elf64-alpha.c (elf64_alpha_relocate_section): Don't return
|
||||||
|
@ -4579,8 +4579,20 @@ elf64_alpha_relocate_section (output_bfd, info, input_bfd, input_section,
|
|||||||
value -= gp;
|
value -= gp;
|
||||||
goto default_reloc;
|
goto default_reloc;
|
||||||
|
|
||||||
case R_ALPHA_GPREL16:
|
|
||||||
case R_ALPHA_GPREL32:
|
case R_ALPHA_GPREL32:
|
||||||
|
/* If the target section was a removed linkonce section,
|
||||||
|
r_symndx will be zero. In this case, assume that the
|
||||||
|
switch will not be used, so don't fill it in. If we
|
||||||
|
do nothing here, we'll get relocation truncated messages,
|
||||||
|
due to the placement of the application above 4GB. */
|
||||||
|
if (r_symndx == 0)
|
||||||
|
{
|
||||||
|
r = bfd_reloc_ok;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* FALLTHRU */
|
||||||
|
|
||||||
|
case R_ALPHA_GPREL16:
|
||||||
case R_ALPHA_GPRELLOW:
|
case R_ALPHA_GPRELLOW:
|
||||||
if (dynamic_symbol_p)
|
if (dynamic_symbol_p)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user