This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] ELF: Don't check DT_NEEDED for linker script defined symbols


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]