[PATCH] Link startup files without package-metadata

Florian Weimer fweimer@redhat.com
Thu Feb 19 12:27:03 GMT 2026


* Dimitri John Ledkov:

> diff --git a/csu/Makefile b/csu/Makefile
> index 2afb70b687..cac2dc6cfc 100644
> --- a/csu/Makefile
> +++ b/csu/Makefile
> @@ -174,7 +174,7 @@ include ../Rules
>  subdir_lib: $(extra-objs:%=$(objpfx)%)
>  
>  define link-relocatable
> -$(CC) -nostdlib -nostartfiles -r -o $@ $^
> +$(CC) -Wl,--package-metadata= -nostdlib -nostartfiles -r -o $@ $^
>  endef
>  
>  ifndef start-installed-name-rule

This seems to be quite specific to distribution build policy.  I expect
not everyone will want to hide provenance in this way.

Is there a reason why you can't use strip to remove the notes you don't
want?

Thanks,
Florian



More information about the Libc-alpha mailing list