This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Use LOCAL_LABEL_PREFIX when creating local labels


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]