This is the mail archive of the binutils@sources.redhat.com 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: ld's --no-undefined-version and '*' in pattern


On Thu, Oct 23, 2003 at 11:29:20AM -0700, H. J. Lu wrote:
> On Tue, Oct 21, 2003 at 10:57:36PM -0700, H. J. Lu wrote:
> 
> > > I think we need something different from wildcardp, which can handle
> > > "foo\*bar", for setting the new wildcard bit. We can modify it after
> > > your patch is checked in.
> > > 
> > 
> > I am thinking about instead of adding
> > 
> > unsigned int wildcard : 1;
> > 
> > we add
> > 
> > const char *symbol;
> > 
> > If
> > 
> > const char *pattern;
> > 
> > is a wildcard, symbol will be NULL. Otherwise, symbol will point to
> > pattern if pattern has no backslash or point to a copy of pattern
> > with backslashes removed. size_dynamic_sections will lookup symbol
> > like
> > 
> > 	if (!d->symver && d->symbol != NULL)
> > 	  {
> > 	    ...
> > 	    elf_link_hash_lookup
> > 	    ...
> > 	 }
> > 
> 
> Here is the patch to implement it.
> 

The patch is incorrect. Here is an update.


H.J.

Attachment: binutils-vers-glob-2.patch
Description: Text document


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