search for: __custom_section

Displaying 1 result from an estimated 1 matches for "__custom_section".

2017 Nov 28
3
storing MBB MCSymbol in custom section
...-o calc_pi fatal error: error in backend: Undefined temporary symbol However when only compiling (incompletely via -S), e.g. $clang calc_pi.c -o calc_pi -S , it does compile with the expected outputs and the basic block labels properly generated in my section. I get a file with proper labels e.g. __custom_section: .long 19 .quad .LBB0_0 .long 1 .quad .LBB0_1 .long 28 .quad .LBB0_2 .long 3 ... etc. TLDR: compiles correctly, will not link successfully to make a binary because the symbol of the basic block in the .text section doesn't exist. How do I ensure the Ba...