This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [PATCH] make macro-generated local labels truely local
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: "Jan Beulich" <JBeulich at novell dot com>
- Cc: <binutils at sources dot redhat dot com>
- Date: 06 Oct 2004 14:16:08 -0400
- Subject: Re: [PATCH] make macro-generated local labels truely local
- References: <s16420f3.058@emea1-mh.id2.novell.com>
"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