On Tue, 2 Dec 2014, Richard Biener wrote:

> Joseph may have more experience with how targets should setup
> USER_LABEL_PREFIX to avoid this situation.

See e.g. config/arm/lib1funcs.S:

#define SYM(x) CONCAT1 (__USER_LABEL_PREFIX__, x)

(and the associated macro definition of CONCAT1 that uses, etc.).  If you 
have .S sources that may be used on targets both with and without a 
prefix, you should do something similar.  (The ELF gABI says "External C 
symbols have the same names in C and object files' symbol tables.", so ELF 
targets using leading underscores on C symbol names are going against the 
gABI.)

-- 
Joseph S. Myers
jos...@codesourcery.com

Reply via email to