This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Linker script PROVIDE statements
- From: Joern Rennecke <joern dot rennecke at superh dot com>
- To: amodra at bigpond dot net dot au
- Cc: nathan at codesourcery dot com, binutils at sources dot redhat dot com
- Date: Thu, 26 Feb 2004 16:28:10 +0000 (GMT)
- Subject: Re: Linker script PROVIDE statements
> No. The point of PROVIDE is to only create the symbol if it is
> referenced. Try changing ldexp.c:fold_name to create an undefined
It's also used to provide a default definition that can be overridden
with --defsym, so adding a redefinition error when the redefinition comes
from --defsym would be wrong.