Ignore:
Timestamp:
Feb 3, 2004, 8:58:53 PM (22 years ago)
Author:
bird
Message:

#483: Genereate correct fixup for weak symbols, please. (or explain how to figure it out as it is)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/binutils/bfd/aoutx.h

    • Property cvs2svn:cvs-rev changed from 1.5 to 1.6
    r1154 r1155  
    20862086  asection *output_section = sym->section->output_section;
    20872087
     2088  /* bird - start */
     2089  /* Output reloctions to weak symbols as if they were undefined externals.
     2090     The aoutx.h code relocates them as if they were nothing special and I can't
     2091     see the linker doing the right thing either when it processes it. */
     2092  int is_weak = g->sym_ptr_ptr
     2093      && *g->sym_ptr_ptr
     2094      && ((*g->sym_ptr_ptr)->flags & BSF_WEAK);
     2095  /* bird - end */
     2096
    20882097  PUT_WORD (abfd, g->address, natptr->r_address);
    20892098
     
    21112120  if (bfd_is_com_section (output_section)
    21122121      || bfd_is_abs_section (output_section)
    2113       || bfd_is_und_section (output_section))
     2122      || bfd_is_und_section (output_section)
     2123      || is_weak)                     /* bird */
    21142124    {
    21152125      if (bfd_abs_section_ptr->symbol == sym)
Note: See TracChangeset for help on using the changeset viewer.