mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-19 17:18:24 +08:00
* elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.
This commit is contained in:
@ -1,5 +1,7 @@
|
|||||||
Mon Apr 25 15:31:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
Mon Apr 25 15:31:04 1994 Ian Lance Taylor (ian@tweedledumb.cygnus.com)
|
||||||
|
|
||||||
|
* elfcode.h (write_relocs): Undo patch of Apr 10; breaks Solaris.
|
||||||
|
|
||||||
* elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
|
* elfcode.h (bfd_section_from_shdr): Use bfd_make_section_anyway
|
||||||
to create sections. Check return value of recursive calls.
|
to create sections. Check return value of recursive calls.
|
||||||
(bfd_section_from_phdr): Check return value of bfd_make_section.
|
(bfd_section_from_phdr): Check return value of bfd_make_section.
|
||||||
|
@ -1201,17 +1201,6 @@ write_relocs (abfd, sec, xxx)
|
|||||||
dst_rela.r_offset = ptr->address;
|
dst_rela.r_offset = ptr->address;
|
||||||
|
|
||||||
sym = *ptr->sym_ptr_ptr;
|
sym = *ptr->sym_ptr_ptr;
|
||||||
|
|
||||||
/* If SYM is a section symbol for an input section, which
|
|
||||||
has been combined with other similar input sections (ld -r),
|
|
||||||
then adjust the addend by the output_offset of sym->section.
|
|
||||||
|
|
||||||
Apparently elf_symbol_from_bfd_symbol doesn't provide a 1:1
|
|
||||||
mapping from bfd symbol to elf symbols in this case. */
|
|
||||||
if ((sym->flags & BSF_SECTION_SYM)
|
|
||||||
&& sym->section)
|
|
||||||
ptr->addend += sym->section->output_offset;
|
|
||||||
|
|
||||||
if (sym == last_sym)
|
if (sym == last_sym)
|
||||||
n = last_sym_idx;
|
n = last_sym_idx;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user