diff options
author | Nick Clifton <nickc@redhat.com> | 2004-10-07 15:16:08 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2004-10-07 15:16:08 +0000 |
commit | 89658e5257dd9b4dd7dd1e77f46e2ecc491c89fd (patch) | |
tree | 9f2b61fe25dd8c6660a3af92f385f40d2e2bdcf1 | |
parent | 6b40fcba62005ece43aaf60a053d10a0c2a9a47f (diff) | |
download | gdb-89658e5257dd9b4dd7dd1e77f46e2ecc491c89fd.zip gdb-89658e5257dd9b4dd7dd1e77f46e2ecc491c89fd.tar.gz gdb-89658e5257dd9b4dd7dd1e77f46e2ecc491c89fd.tar.bz2 |
For ELF targets use .LL rather than LL as the prefix for symbol names generated
from the LOCAL macro directive.
-rw-r--r-- | gas/ChangeLog | 5 | ||||
-rw-r--r-- | gas/macro.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog index c0c9a67..dd7e73b 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2004-10-07 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. + 2004-10-07 Tomer Levi <Tomer.Levi@nsc.com> * config/tc-crx.c (preprocess_reglist): Handle Co-processor diff --git a/gas/macro.c b/gas/macro.c index 2df3297..edadcc9 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -1,5 +1,5 @@ /* macro.c - macro support for gas - Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003 + Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc. Written by Steve and Judy Chamberlain of Cygnus Support, @@ -54,6 +54,7 @@ extern void *alloca (); #ifdef HAVE_STDLIB_H #include <stdlib.h> #endif +#include "as.h" #include "libiberty.h" #include "safe-ctype.h" #include "sb.h" @@ -756,7 +757,7 @@ macro_expand_body (sb *in, sb *out, formal_entry *formals, src = get_token (src, in, &f->name); ++loccnt; - sprintf (buf, "LL%04x", loccnt); + sprintf (buf, IS_ELF ? ".LL%04x" : "LL%04x", loccnt); sb_add_string (&f->actual, buf); err = hash_jam (formal_hash, sb_terminate (&f->name), f); |