[PATCH v2] ld: add new --enable-new-dtags-only flag

John Marino gnugcc@marino.st
Fri Jan 11 09:22:00 GMT 2013


On 1/11/2013 07:05, Mike Frysinger wrote:
> With the --enable-new-dtags flag, you can generate DT_RUNPATH in
> addition to DT_RPATH.  But the former tag isn't terribly useful
> so long as the latter is still being generated.  So add a new
> option to suppress that.
>
> The proposed option name isn't great, but it's in line with the
> existing --neable-new-dtags flag.
>
> Signed-off-by: Mike Frysinger<vapier@gentoo.org>
>
> [Being lazy on CL writing until we hammer out the proposal]
> ---

I don't think the premise is true.
If both DT_RUNPATH and DT_RPATH dtags are present, DT_RPATH dtag is 
ignored by the dynamic linker.

I don't know of a dynamic linker that behaves differently.
Are you sure there's a problem here?

John



More information about the Binutils mailing list