This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Use LOCAL_LABEL_PREFIX when creating local labels
- To: Nick Clifton <nickc at redhat dot com>
- Subject: Re: Use LOCAL_LABEL_PREFIX when creating local labels
- From: Richard Earnshaw <rearnsha at arm dot com>
- Date: Fri, 12 Jan 2001 20:55:02 +0000
- Cc: binutils at sources dot redhat dot com
- Cc: rearnsha at arm dot com
- Organization: ARM Ltd.
- Reply-To: rearnsha at arm dot com
Nick,
How can this
*************** fb_label_name (n, augend)
*** 1483,1488 ****
- --- 1486,1494 ----
know (n >= 0);
know (augend == 0 || augend == 1);
p = symbol_name_build;
+ #ifdef LOCAL_LABEL_PREFIX
+ *p++ = LOCAL_LABEL_PREFIX;
+ #endif
*p++ = 'L';
/* Next code just does sprintf( {}, "%d", n); */
be correct if LOCAL_LABEL_PREFIX is a string?
Form arm-coff patch
*** coff-arm.c 2000/12/18 20:50:41 1.21
--- coff-arm.c 2001/01/11 01:40:41
*************** coff_arm_copy_private_bfd_data (src, des
*** 2435,2442 ****
}
/* Note: the definitions here of LOCAL_LABEL_PREFIX and
USER_LABEL_PREIFX
! *must* match the definitions in gcc/config/arm/coff.h and semi.h */
! #define LOCAL_LABEL_PREFIX "."
#ifndef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_"
#endif
--- 2435,2442 ----
}
/* Note: the definitions here of LOCAL_LABEL_PREFIX and
USER_LABEL_PREIFX
! *must* match the definitions in gcc/config/arm/{coff|semi|aout}.h. */
! #define LOCAL_LABEL_PREFIX ""
#ifndef USER_LABEL_PREFIX
#define USER_LABEL_PREFIX "_"
#endif
So either LOCAL_LABEL_PREFIX must be in single quotes, or the code in
symbols.c needs changing.
R.