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

--- Comment #6 from maamountki <maamountk at hotmail dot com> ---
(In reply to Andreas Krebbel from comment #5)
> One difference to the ld implementation is that you appear to always use the
> new got layout. ld uses the new layout only for partial relro to keep impact
> on existing stuff as small as possible.

Unfortunately gold does not provide the flexibility that ld offer, You can see
the same behavior on the other platforms.

> Have you checked that all this works with linker scripts as well. I mean
> linker scripts which have got and got.plt swapped? Will gold do the right
> thing for these variants with regard to the 3 magic entries,
> _GLOBAL_OFFSET_TABLE_, and DT_PLTGOT?

Yes I do and it does not.
.got and .got.plt must be set properly in linker srcript to get it work
otherwise a segmentation fault will be produced. I can see the same behavior on
different platform "x86_64".

-- 
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