This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC: linker enhancements
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sources dot redhat dot com
- Date: Mon, 17 May 2004 21:08:17 -0400
- Subject: Re: RFC: linker enhancements
- References: <20031212112448.GI12344@sunsite.ms.mff.cuni.cz> <87wu92xan5.fsf@egil.codesourcery.com> <20031212142914.GK12344@sunsite.ms.mff.cuni.cz> <20040317042418.GZ15900@bubble.modra.org> <20040318124611.GN15203@bubble.modra.org> <20040318171405.GA7468@nevyn.them.org> <20040318235300.GS15203@bubble.modra.org> <20040319002751.GA26304@nevyn.them.org> <20040319013933.GX15203@bubble.modra.org>
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