[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gas/20803] Sparc R_SPARC_32 reloc with miss-align offset.
From: |
chrisj at rtems dot org |
Subject: |
[Bug gas/20803] Sparc R_SPARC_32 reloc with miss-align offset. |
Date: |
Mon, 14 Nov 2016 22:41:43 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=20803
--- Comment #2 from Chris Johns <chrisj at rtems dot org> ---
(In reply to Nick Clifton from comment #1)
> Created attachment 9623 [details]
> Proposed patch
Thank you for the quick turn around.
>
> Please could you try out this patch and let me know if it is enough to
> solve the problem.
>
Yes, this solves the problem we are seeing.
> I am not sure if this approach is the correct way to fix the issue, but it
> does seem to be the simplest. As far as I can tell, the relocs in the
> .eh_frame section can eb unaligned, so using R_SPARC_UA32 seems to be the
> correct thing to do. I did look to see if I could enable
> sparc_no_align_cons when fixing the output for the .eh_frame section, but I
> could not find an easy way to do this. Hence I went for a hack based on the
> section name. Not very subtle, but if it works then that is enough for now.
I also had a look and felt any change was a potential issue for some other
reason I would not be aware of. We will use this patch in RTEMS until the next
binutils release.
Thank you.
--
You are receiving this mail because:
You are on the CC list for the bug.