[PATCH users/roland/ld-depfile] ld, gold: Add --dependency-file option.
Alan Modra
amodra@gmail.com
Mon Jun 15 06:33:03 GMT 2020
On Fri, Jun 12, 2020 at 10:26:10PM -0700, Roland McGrath via Binutils wrote:
> --- a/ld/ldelf.c
> +++ b/ld/ldelf.c
> @@ -262,6 +262,8 @@ ldelf_try_needed (struct dt_needed *needed, int
> force, int is_linux)
> return FALSE;
> }
>
> + track_dependency_files (name);
> +
> /* Linker needs to decompress sections. */
> abfd->flags |= BFD_DECOMPRESS;
>
This should be moved later in the function, at least past the point
where incompatible library versions are excluded. I think I'd put it
after the point where we exclude libc.so.1 being loaded if we've
already loaded libc.so (when libc.so is a symlink to libc.so.1).
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list