memmap: Fix gcc out-of-bounds warning
Use a different definition for the linker script symbol to avoid a gcc warning. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
This commit is contained in:
parent
0a1e7675f7
commit
98dd53b994
|
@ -15,7 +15,7 @@ static inline void *memremap(u32 addr, u32 len) {
|
|||
}
|
||||
|
||||
// Return the value of a linker script symbol (see scripts/layoutrom.py)
|
||||
#define SYMBOL(SYM) ({ extern char SYM; (u32)&SYM; })
|
||||
#define SYMBOL(SYM) ({ extern char SYM[]; (u32)SYM; })
|
||||
#define VSYMBOL(SYM) ((void*)SYMBOL(SYM))
|
||||
|
||||
#endif // memmap.h
|
||||
|
|
Loading…
Reference in New Issue