rfc patch PR32760: find-debuginfo for static libraries
Florian Weimer
fweimer@redhat.com
Mon Mar 10 09:22:04 GMT 2025
* Frank Ch. Eigler:
> +If -a is given, then static libraries will be ignored. Otherwise,
> +they receive only with source-path rewriting and collection. They are
> +not stripped, since they have no persistent build-ids to accommodate
> +eventual reunification.
I have trouble understanding the “they receive only with” part.
> +# Handle ELF archives
> +do_ar_file()
> +{
> + local nlinks=$1 inum=$2 f=$3 id link linked
> +
> + artemp="$temp/ar.$inum"
> + mkdir -p "$artemp"
> + (cd "$artemp"; ar x "$f")
I don't think this is able to handle duplicate file names inside the
archive. I expect ld not to care about file names, so this could
corrupt static archives.
Thanks,
Florian
More information about the Debugedit
mailing list