This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[PATCH] LOCAL_LABEL_PREFIX on Windows CE (ARM).
- From: Pedro Alves <pedro_alves at portugalmail dot pt>
- To: binutils at sourceware dot org
- Date: Sat, 21 Oct 2006 03:19:56 +0100
- Subject: [PATCH] LOCAL_LABEL_PREFIX on Windows CE (ARM).
Hi all,
Since we aren't using underscores on Windows CE,
we must set LOCAL_LABEL_PREFIX.
This patch sets it to ".".
Tested on cross to arm-wince-pe, arm-pe, arm-epoc-pe and arm-none-eabi.
Please review and commit.
Cheers,
Pedro Alves
---
bfd/ChangeLog:
2006-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
* pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".".
* pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise.
* coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before.
gas/testsuite/ChangeLog:
2006-10-21 Pedro Alves <pedro_alves@portugalmail.pt>
* gas/arm/undefined.d: Run test on Windows CE.
* gas/arm/undefined_coff.d: Don't run test on Windows CE.
Index: bfd/pe-arm-wince.c
===================================================================
RCS file: /cvs/src/src/bfd/pe-arm-wince.c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 pe-arm-wince.c
--- bfd/pe-arm-wince.c 21 Aug 2006 08:12:45 -0000 1.1
+++ bfd/pe-arm-wince.c 21 Oct 2006 02:00:19 -0000
@@ -32,4 +32,6 @@ Foundation, Inc., 51 Franklin Street - F
#define bfd_arm_process_before_allocation \
bfd_arm_wince_pe_process_before_allocation
+#define LOCAL_LABEL_PREFIX "."
+
#include "pe-arm.c"
Index: bfd/pei-arm-wince.c
===================================================================
RCS file: /cvs/src/src/bfd/pei-arm-wince.c,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 pei-arm-wince.c
--- bfd/pei-arm-wince.c 21 Aug 2006 08:12:45 -0000 1.1
+++ bfd/pei-arm-wince.c 21 Oct 2006 02:00:19 -0000
@@ -25,4 +25,6 @@ Foundation, Inc., 51 Franklin Street - F
#define TARGET_BIG_SYM arm_wince_pei_big_vec
#define TARGET_BIG_NAME "pei-arm-wince-big"
+#define LOCAL_LABEL_PREFIX "."
+
#include "pei-arm.c"
Index: gas/testsuite/gas/arm/undefined.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arm/undefined.d,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 undefined.d
--- gas/testsuite/gas/arm/undefined.d 4 Jul 2005 14:57:45 -0000 1.1
+++ gas/testsuite/gas/arm/undefined.d 21 Oct 2006 02:00:19 -0000
@@ -1,4 +1,5 @@
#name: Undefined local label error
-# COFF and aout based ports use a different naming convention for local labels.
-#skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+# COFF and aout based ports, except Windows CE,
+# use a different naming convention for local labels.
+#skip: *-*-*coff *-unknown-pe *-epoc-pe *-*-*aout* *-*-netbsd *-*-riscix*
#error-output: undefined.l
Index: gas/testsuite/gas/arm/undefined_coff.d
===================================================================
RCS file: /cvs/src/src/gas/testsuite/gas/arm/undefined_coff.d,v
retrieving revision 1.1
diff -u -p -u -p -r1.1 undefined_coff.d
--- gas/testsuite/gas/arm/undefined_coff.d 4 Jul 2005 14:57:45 -0000 1.1
+++ gas/testsuite/gas/arm/undefined_coff.d 21 Oct 2006 02:00:19 -0000
@@ -1,4 +1,5 @@
#name: Undefined local label error
-# COFF and aout based ports use a different naming convention for local labels.
-#not-skip: *-*-*coff *-*-pe *-*-wince *-*-*aout* *-*-netbsd *-*-riscix*
+# COFF and aout based ports, except Windows CE,
+# use a different naming convention for local labels.
+#not-skip: *-*-*coff *-unknown-pe *-epoc-pe *-*-*aout* *-*-netbsd *-*-riscix*
#error-output: undefined_coff.l