[gold patch RFC] implement suppotr for -z origin
Chris Demetriou
cgd@google.com
Fri Sep 12 05:43:00 GMT 2008
On Thu, Sep 11, 2008 at 22:31, Ian Lance Taylor <iant@google.com> wrote:
> Don't check enable_new_dtags. That only controls whether gold emits
> DT_RUNPATH as well as DT_RPATH. The name is terrible, but it came
> from GNU ld. It's true that GNU ld uses --enable-new-dtags to control
> whether to emit some other flags, but that really makes no sense.
>
> OK with that change.
Thanks. I freely admit that I was going for compatibility rather than
sense. (The GNU ld behavior had me scratching my head for a few
minutes... 8-)
Updated ChangeLog entry for the mod, too, of course, and retested.
Patch as committed attached.
chris
---
2008-09-11 Chris Demetriou <cgd@google.com>
* options.h (origin): New -z option.
* layout.cc (Layout:finish_dynamic_section): If "-z origin"
is specified, set DF_ORIGIN in DT_FLAGS and set DF_1_ORIGIN
in DT_FLAGS_1.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: z_origin_as_committed.patch
Type: text/x-patch
Size: 1830 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20080912/d1ace16d/attachment.bin>
More information about the Binutils
mailing list