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] make macro-generated local labels truely local


"Jan Beulich" <JBeulich@novell.com> writes:

> I don't think so, because this would either prevent it from being output
> with -L altogether or result in an unreadable symbol.

Hmmm, right.  I thought there was a function or macro to construct a
local symbol name, either in gas or BFD, but now I can't seem to find
it.

Ian

> >>> Ian Lance Taylor <ian@wasabisystems.com> 06.10.04 17:31:42 >>>
> "Jan Beulich" <JBeulich@novell.com> writes:
> 
> > When using the LOCAL macro directive (in alternate macro mode) all
> the
> > symbols generated were made visible in the object's symbol table.
> > These
> > should, however, be treated the same as other local symbols, and
> since
> > their recognition is name dependent for ELF they should have names
> > recognizable by _bfd_elf_is_local_label_name.
> > 
> > Build and tested on i686-pc-linux-gnu.
> > 
> > gas/
> > 2004-10-06 Jan Beulich <jbeulich@novell.com>
> > 
> > 	* macro.c (macro_expand_body): When ELF, use .LL rather than LL
> > as
> > 	prefix for symbol names generated from the LOCAL macro
> > directive.
> 
> Perhaps we should just use symbol_temp_make()?
> 
> Ian


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