[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emitting relocation info bug
From: |
Jeffrey Blank |
Subject: |
emitting relocation info bug |
Date: |
Mon, 15 Apr 2002 06:53:57 -0700 (PDT) |
On my Red Hat 7.2 system, ld is writing the wrong
address for a symbol only when asked to emit
relocation information (with the -q) and the
executable it creates segfaults during run. Compiling
the SRPM for wu-ftpd will demonstrate this.
>From what I can tell with gdb, it looks like in
_bfd_merged_section_offset (called from bfd/elflink.h
~line 6000) sets isym->st_value and that value is
later incremented further (by the relocation-writing
portion of elf_link_input_bfd(), ~line 6336) before
actually writing output.
The latest GNU snapshots are doing the same thing. I
haven't made a patch yet; I'm assuming the authors
have a better idea than me how to keep the
optimizations from _bfd_merged_section_offset and
still get correct output.
Please let me know if I'm being totally unclear or
imagining things.
__________________________________________________
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
http://taxes.yahoo.com/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emitting relocation info bug,
Jeffrey Blank <=