[PATCH] ELF: Don't check DT_NEEDED for linker script defined symbols
Hans-Peter Nilsson
hp@bitrange.com
Sun Nov 26 00:12:00 GMT 2017
On Thu, 23 Nov 2017, H.J. Lu wrote:
> Linker shouldn't use any shared objects, including those from DT_NEEDED,
> to resolve references of symbols which will be defined by linker script.
Here you say "linker script", later you say "built-in linker
script". ITYM the former everywhere; at least that's what makes
sense to me.
> + const char *symbols[] =
> + {
> + "__${ETEXT_NAME}",
> + "_${ETEXT_NAME}",
> + "${ETEXT_NAME}",
> + "${USER_LABEL_PREFIX}" "__bss_start",
> + "${USER_LABEL_PREFIX}" "_edata",
> + "${USER_LABEL_PREFIX}" "edata",
> + "${USER_LABEL_PREFIX}" "_end",
> + "${USER_LABEL_PREFIX}" "end",
> + NULL
> + };
This isn't derived from command-line-specified linker scripts in
effect, this is a static, somewhat arbitrary list.
brgds, H-P
More information about the Binutils
mailing list