https://sourceware.org/bugzilla/show_bug.cgi?id=18374

--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Nick Clifton from comment #1)
> Created attachment 8316 [details]
> Detect relocs against addresses in .debug_loc sections
> 
> Hi H.J.
> 
>   The problem here is that the although readelf has processed the relocs
> against the .debug_loc section, the processed values are not valid.  (The
> reolcs involved were offsets from the .text section symbol, but since the
> section has not been placed into memory yet, the relocs were resolving to
> zero).
> 
>   The uploaded patch fixes the problem by refusing to accept an end-of-list
> pair of addresses when relocs exist against them.  Do you have any comments
> on the patch before I apply it ?

Can you extract/add a testcase from this bug report? Thanks.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to