This is the mail archive of the
mailing list for the binutils project.
Re: Symbols defined via linker script: local or global?
- From: Alan Modra <amodra at gmail dot com>
- To: Sebastian Huber <sebastian dot huber at embedded-brains dot de>
- Cc: "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Thu, 12 May 2016 21:45:48 +0930
- Subject: Re: Symbols defined via linker script: local or global?
- Authentication-results: sourceware.org; auth=none
- References: <57346354 dot 80700 at embedded-brains dot de>
On Thu, May 12, 2016 at 01:04:52PM +0200, Sebastian Huber wrote:
> I define a symbol in a custom linker script, e.g.
> foo = 0x123;
> In case I reference this symbol in my executable (e.g. printf("%p\n", foo)),
> then the symbol is global in the ELF file. In case it is not referenced by
> the executable, then it is local.
What target, and what options were you passing to ld?
Australia Development Lab, IBM