This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATCH: Fix linkonce for ELF/PPC.


On Tue, Oct 30, 2001 at 11:42:07AM +1030, Alan Modra wrote:
> On Mon, Oct 29, 2001 at 04:54:28PM -0800, H . J . Lu wrote:
> > +
> > +void
> > +elf_remove_linkonce_rela (rel)
> > +     Elf_Internal_Rela *rel;
> > +{
> > +  long r_type = ELF_R_TYPE (rel->r_info);
> > +  rel->r_info = ELF_R_INFO (STN_UNDEF, r_type);
> > +}
> 
> I seem to recall ia64 had a problem with segment relative relocs against
> removed linkonce sections.  Have you tested ia64?

The current CVS seems ok on ia64. But I haven't tested it with my patch
on ia64 yet. But I won't worry about it. Each target can redefine those
functions if necessary.

> 
> More importantly, you haven't shown why this problem requires hacks to
> binutils rather than fixes to gcc.

You know as much about ELF/PPC as me, if not more. If I have to guess,
static/dynamic linker may have to perform some relocations even if
ELF_R_SYM is 0. In any case, we need a resolution on this issue and
keep it under control.


H.J.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]