This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] ELF: Don't check DT_NEEDED for linker script defined symbols
- From: Hans-Peter Nilsson <hp at bitrange dot com>
- To: "H.J. Lu" <hjl dot tools at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Sat, 25 Nov 2017 19:12:18 -0500 (EST)
- Subject: Re: [PATCH] ELF: Don't check DT_NEEDED for linker script defined symbols
- Authentication-results: sourceware.org; auth=none
- References: <20171123164704.GA25028@gmail.com>
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