From 199114c25d5f48c6f616a7b071c17553eafab61b Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 23 Jan 2009 14:45:48 +0000 Subject: [PATCH] * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define. * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define. testsuite/: * gas/mips/mips16-e.d: Adjust for change in LOCAL_LABEL_PREFIX. * gas/mips/mipsel16-e.d: Likewise. * gas/mips/tmips16-e.d: Likewise. * gas/mips/tmipsel16-e.d: Likewise. --- gas/ChangeLog | 5 +++++ gas/config/obj-elf.h | 4 ++++ gas/config/tc-s390.h | 2 -- gas/testsuite/ChangeLog | 7 +++++++ gas/testsuite/gas/mips/mips16-e.d | 6 +++--- gas/testsuite/gas/mips/mipsel16-e.d | 6 +++--- gas/testsuite/gas/mips/tmips16-e.d | 6 +++--- gas/testsuite/gas/mips/tmipsel16-e.d | 6 +++--- 8 files changed, 28 insertions(+), 14 deletions(-) diff --git a/gas/ChangeLog b/gas/ChangeLog index 6525893e681..e9b4dba79c8 100644 --- a/gas/ChangeLog +++ b/gas/ChangeLog @@ -1,3 +1,8 @@ +2009-01-23 Andreas Schwab + + * config/obj-elf.h (LOCAL_LABEL_PREFIX): Conditionally define. + * config/tc-s390.h (LOCAL_LABEL_PREFIX): Don't define. + 2009-01-19 Nick Clifton * config/tc-arm.h (CONVERT_SYMBOLIC_ATTRIBUTE): Only define for diff --git a/gas/config/obj-elf.h b/gas/config/obj-elf.h index 95db3552d6b..e9a28c1c060 100644 --- a/gas/config/obj-elf.h +++ b/gas/config/obj-elf.h @@ -98,6 +98,10 @@ struct elf_obj_sy #endif extern void elf_begin (void); +#ifndef LOCAL_LABEL_PREFIX +#define LOCAL_LABEL_PREFIX '.' +#endif + /* should be conditional on address size! */ #define elf_symbol(asymbol) ((elf_symbol_type *) (&(asymbol)->the_bfd)) diff --git a/gas/config/tc-s390.h b/gas/config/tc-s390.h index 7ac135c761b..163640005df 100644 --- a/gas/config/tc-s390.h +++ b/gas/config/tc-s390.h @@ -51,8 +51,6 @@ extern const char *s390_target_format (void); /* Whether or not the target is big endian */ extern int target_big_endian; -#define LOCAL_LABEL_PREFIX '.' - /* Permit temporary numeric labels. */ #define LOCAL_LABELS_FB 1 diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog index fca8c1c33cb..5e2bcd23b8f 100644 --- a/gas/testsuite/ChangeLog +++ b/gas/testsuite/ChangeLog @@ -1,3 +1,10 @@ +2009-01-23 Andreas Schwab + + * gas/mips/mips16-e.d: Adjust for change in LOCAL_LABEL_PREFIX. + * gas/mips/mipsel16-e.d: Likewise. + * gas/mips/tmips16-e.d: Likewise. + * gas/mips/tmipsel16-e.d: Likewise. + 2009-01-19 Nick Clifton * lib/gas-defs.exp (run_list_test): Fix typo in comment. diff --git a/gas/testsuite/gas/mips/mips16-e.d b/gas/testsuite/gas/mips/mips16-e.d index 553a6b36ac7..b8134dcdf50 100644 --- a/gas/testsuite/gas/mips/mips16-e.d +++ b/gas/testsuite/gas/mips/mips16-e.d @@ -14,7 +14,7 @@ SYMBOL TABLE: 0+0000000 l d \.reginfo 0+0000000 (|\.reginfo) 0+0000000 l d \.(mdebug|pdr) 0+0000000 (|\.mdebug|\.pdr) 0+0000002 l \.text 0+0000000 0xf0 l1 -0+0000004 l \.text 0+0000000 0xf0 L1.1 +0+0000004 l \.text 0+0000000 0xf0 \.L1.1 0+0000000 \*UND\* 0+0000000 g1 @@ -22,8 +22,8 @@ RELOCATION RECORDS FOR \[foo\]: OFFSET [ ]+ TYPE VALUE 0+0000000 R_MIPS_32 l1 0+0000004 R_MIPS_32 l1 -0+0000008 R_MIPS_32 L1.1 -0+000000c R_MIPS_32 L1.1 +0+0000008 R_MIPS_32 \.L1.1 +0+000000c R_MIPS_32 \.L1.1 0+0000010 R_MIPS_32 g1 0+0000014 R_MIPS_32 g1 diff --git a/gas/testsuite/gas/mips/mipsel16-e.d b/gas/testsuite/gas/mips/mipsel16-e.d index 2e20a1a196b..be84fe38882 100644 --- a/gas/testsuite/gas/mips/mipsel16-e.d +++ b/gas/testsuite/gas/mips/mipsel16-e.d @@ -15,7 +15,7 @@ SYMBOL TABLE: 0+0000000 l d \.reginfo 0+0000000 (|\.reginfo) 0+0000000 l d \.(mdebug|pdr) 0+0000000 (|\.mdebug|\.pdr) 0+0000002 l \.text 0+0000000 0xf0 l1 -0+0000004 l \.text 0+0000000 0xf0 L1.1 +0+0000004 l \.text 0+0000000 0xf0 \.L1.1 0+0000000 \*UND\* 0+0000000 g1 @@ -23,8 +23,8 @@ RELOCATION RECORDS FOR \[foo\]: OFFSET [ ]+ TYPE VALUE 0+0000000 R_MIPS_32 l1 0+0000004 R_MIPS_32 l1 -0+0000008 R_MIPS_32 L1.1 -0+000000c R_MIPS_32 L1.1 +0+0000008 R_MIPS_32 \.L1.1 +0+000000c R_MIPS_32 \.L1.1 0+0000010 R_MIPS_32 g1 0+0000014 R_MIPS_32 g1 diff --git a/gas/testsuite/gas/mips/tmips16-e.d b/gas/testsuite/gas/mips/tmips16-e.d index b03c6bb4f04..a610dc707fb 100644 --- a/gas/testsuite/gas/mips/tmips16-e.d +++ b/gas/testsuite/gas/mips/tmips16-e.d @@ -12,7 +12,7 @@ SYMBOL TABLE: 0+0000000 l d \.data 0+0000000 (|\.data) 0+0000000 l d \.bss 0+0000000 (|\.bss) 0+0000002 l \.text 0+0000000 0xf0 l1 -0+0000004 l \.text 0+0000000 0xf0 L1.1 +0+0000004 l \.text 0+0000000 0xf0 \.L1.1 0+0000000 l d foo 0+0000000 (|foo) 0+0000000 l d \.reginfo 0+0000000 (|\.reginfo) 0+0000000 l d \.(mdebug|pdr) 0+0000000 (|\.mdebug|\.pdr) @@ -23,8 +23,8 @@ RELOCATION RECORDS FOR \[foo\]: OFFSET [ ]+ TYPE VALUE 0+0000000 R_MIPS_32 l1 0+0000004 R_MIPS_32 l1 -0+0000008 R_MIPS_32 L1.1 -0+000000c R_MIPS_32 L1.1 +0+0000008 R_MIPS_32 \.L1.1 +0+000000c R_MIPS_32 \.L1.1 0+0000010 R_MIPS_32 g1 0+0000014 R_MIPS_32 g1 diff --git a/gas/testsuite/gas/mips/tmipsel16-e.d b/gas/testsuite/gas/mips/tmipsel16-e.d index 089b27ea559..ecaa8bd1b48 100644 --- a/gas/testsuite/gas/mips/tmipsel16-e.d +++ b/gas/testsuite/gas/mips/tmipsel16-e.d @@ -12,7 +12,7 @@ SYMBOL TABLE: 0+0000000 l d \.data 0+0000000 (|\.data) 0+0000000 l d \.bss 0+0000000 (|\.bss) 0+0000002 l \.text 0+0000000 0xf0 l1 -0+0000004 l \.text 0+0000000 0xf0 L1.1 +0+0000004 l \.text 0+0000000 0xf0 \.L1.1 0+0000000 l d foo 0+0000000 (|foo) 0+0000000 l d \.reginfo 0+0000000 (|\.reginfo) 0+0000000 l d \.(mdebug|pdr) 0+0000000 (|\.mdebug|\.pdr) @@ -23,8 +23,8 @@ RELOCATION RECORDS FOR \[foo\]: OFFSET [ ]+ TYPE VALUE 0+0000000 R_MIPS_32 l1 0+0000004 R_MIPS_32 l1 -0+0000008 R_MIPS_32 L1.1 -0+000000c R_MIPS_32 L1.1 +0+0000008 R_MIPS_32 \.L1.1 +0+000000c R_MIPS_32 \.L1.1 0+0000010 R_MIPS_32 g1 0+0000014 R_MIPS_32 g1 -- 2.30.2