mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:35:43 +08:00
* coff-a29k.c: do byte relocs correctly
* coffcode.h (styp_to_sec_flags): never load INFO sections * seclet.c (rel): don't relocate INFO sections
This commit is contained in:
@ -184,7 +184,7 @@ DEFUN(a29k_reloc,(abfd, reloc_entry, symbol_in, data, input_section, output_bfd)
|
|||||||
abfd->filename);
|
abfd->filename);
|
||||||
return(bfd_reloc_overflow);
|
return(bfd_reloc_overflow);
|
||||||
}
|
}
|
||||||
bfd_put_8(abfd, insn, hit_data);
|
bfd_put_8(abfd, unsigned_value, hit_data);
|
||||||
break;
|
break;
|
||||||
case R_HWORD:
|
case R_HWORD:
|
||||||
insn = bfd_get_16(abfd, hit_data);
|
insn = bfd_get_16(abfd, hit_data);
|
||||||
|
@ -58,7 +58,8 @@ DEFUN(rel,(abfd, seclet, output_section),
|
|||||||
asection *output_section)
|
asection *output_section)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (output_section->flags & SEC_HAS_CONTENTS )
|
if (output_section->flags & SEC_HAS_CONTENTS
|
||||||
|
&& !(output_section->flags & SEC_NEVER_LOAD))
|
||||||
{
|
{
|
||||||
bfd_byte *data = (bfd_byte *)alloca(seclet->size);
|
bfd_byte *data = (bfd_byte *)alloca(seclet->size);
|
||||||
data = bfd_get_relocated_section_contents(abfd, seclet, data);
|
data = bfd_get_relocated_section_contents(abfd, seclet, data);
|
||||||
|
Reference in New Issue
Block a user