RFC: linker enhancements
Daniel Jacobowitz
drow@false.org
Tue May 18 01:08:00 GMT 2004
On Fri, Mar 19, 2004 at 12:09:33PM +1030, Alan Modra wrote:
> On Thu, Mar 18, 2004 at 07:27:51PM -0500, Daniel Jacobowitz wrote:
> > On Fri, Mar 19, 2004 at 10:23:00AM +1030, Alan Modra wrote:
> > > Will you have all dirs converted over to current auto-tools?
> >
> > Unlikely.
>
> A pity.
>
> > > I need to look at that mips problem too.
> >
> > Which?
>
> Index: bfd/elf.c
> ===================================================================
> RCS file: /cvs/src/src/bfd/elf.c,v
> retrieving revision 1.218
> diff -u -p -r1.218 elf.c
> --- bfd/elf.c 5 Mar 2004 11:26:04 -0000 1.218
> +++ bfd/elf.c 18 Mar 2004 10:14:34 -0000
> @@ -4255,9 +4255,7 @@ assign_file_positions_except_relocs (bfd
> off = _bfd_elf_assign_file_position_for_section (hdr, off,
> FALSE);
> }
> - else if (hdr->sh_type == SHT_REL
> - || hdr->sh_type == SHT_RELA
> - || hdr == i_shdrpp[tdata->symtab_section]
> + else if (hdr == i_shdrpp[tdata->symtab_section]
> || hdr == i_shdrpp[tdata->symtab_shndx_section]
> || hdr == i_shdrpp[tdata->strtab_section])
> hdr->sh_offset = -1;
Hey Alan,
Debian users have now run into this problem on both Alpha and ARM
targets, trying to strip shared libraries. GOTO-san was kind enough to
test the patch on Alpha, and it fixes the problem there also. Do you
think this patch is OK, or is there some other solution I should
investigate?
--
Daniel Jacobowitz
More information about the Binutils
mailing list