r240176 caused a regression in reading MIPS elf files.

Daniel Sanders Daniel.Sanders at imgtec.com
Fri Jul 3 06:32:15 PDT 2015


Not without more information from Amjad. I don't yet know what the problem is. I have been able to produce a testcase that doesn't resolve an R_MIPS_32 reference to $section_abbrev+4 correctly on the N64 ABI but this failed before your change too.

> -----Original Message-----
> From: Rafael EspĂ­ndola [mailto:rafael.espindola at gmail.com]
> Sent: 02 July 2015 16:12
> To: Daniel Sanders
> Cc: Aboud, Amjad; llvm-commits at cs.uiuc.edu
> Subject: Re: r240176 caused a regression in reading MIPS elf files.
> 
> Interesting. Can you provide a testcase (.s) showing the problem?
> llvm-dwarfdump seems to be the best way to trigger this.
> 
> On 2 July 2015 at 10:48, Daniel Sanders <Daniel.Sanders at imgtec.com> wrote:
> >> Sorry, but what issues did it cause? 32 bits mips uses REL instead of RELA.
> >
> > I don't know about the issues caused (yet?) but I should mention that the
> visitELF_MIPS_32() mentioned in Amjad's patch handles the R_MIPS_32
> reloc for both the REL and RELA cases. It's not referring to 32-bit Mips.
> >
> >> -----Original Message-----
> >> From: llvm-commits-bounces at cs.uiuc.edu [mailto:llvm-commits-
> >> bounces at cs.uiuc.edu] On Behalf Of Rafael EspĂ­ndola
> >> Sent: 02 July 2015 13:31
> >> To: Aboud, Amjad
> >> Cc: llvm-commits at cs.uiuc.edu
> >> Subject: Re: r240176 caused a regression in reading MIPS elf files.
> >>
> >> On 1 July 2015 at 15:02, Aboud, Amjad <amjad.aboud at intel.com> wrote:
> >> > Hi Rafael,
> >> >
> >> > I just noticed that your commit in revision 240176 caused a regression in
> >> reading elf file for MIPS architecture.
> >> > It seems a copy paste issue, please see attach patch with the proposed
> fix.
> >> >
> >> > If you agree, please can you take care of the issue?
> >>
> >> Sorry, but what issues did it cause? 32 bits mips uses REL instead of RELA.
> >>
> >> Cheers,
> >> Rafael
> >> _______________________________________________
> >> llvm-commits mailing list
> >> llvm-commits at cs.uiuc.edu
> >> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits




More information about the llvm-commits mailing list