open-power / pdbg

PowerPC FSI Debugger
Apache License 2.0
16 stars 39 forks source link

template.S: fix to build on architecture with non-empty __USER_LABEL_… #26

Closed tpetazzoni closed 6 years ago

tpetazzoni commented 6 years ago

…PREFIX__

Blackfin has a non-empty USER_LABEL_PREFIX, which means that a symbol called "foo" in C must be named "_foo" in assembler.

Interestingly, it seems like "$(CC) -xassembler - -c" doesn't pass the input source file through the C preprocessor, so we do this explicitly.

Signed-off-by: Thomas Petazzoni thomas.petazzoni@free-electrons.com

apopple commented 6 years ago

Thanks for the suggestion @tpetazzoni, @shenki reworked this though and I believe it was fixed by 8275ca370476a3 (template.S: fix to build on architecture with non-empty USER_LABEL_PREFIX)