forked from Imagelibrary/rtems
sparc: only define start if it is different from SYM(start)
The SYM define concatenates the input with the compiler set __USER_LABEL_PREFIX__ define. This define appears to be '_' in GCC but empty in Clang. Therefore when compiling with Clang/LLVM 'SYM(start)' and 'start' defines the same symbol, and the compiler complains that the symbol is defined twice.
This commit is contained in:
committed by
Daniel Hellstrom
parent
863968599c
commit
bc470d3c49
@@ -79,7 +79,9 @@
|
|||||||
.global start, __bsp_mem_init
|
.global start, __bsp_mem_init
|
||||||
|
|
||||||
SYM(start):
|
SYM(start):
|
||||||
|
#if SYM(start) != start
|
||||||
start:
|
start:
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The trap table has to be the first code in a boot PROM. But because
|
* The trap table has to be the first code in a boot PROM. But because
|
||||||
|
|||||||
Reference in New Issue
Block a user