Can't add the allocated section to elf file using inline assembly

kinke kinke at gmx.net
Tue Nov 5 16:55:03 UTC 2019


On Tuesday, 5 November 2019 at 12:20:14 UTC, drug wrote:
> How can I compile .s file?

The .s file is just the textual representation of the .o object 
file, so compiling it shouldn't be necessary.

> So I guess the generated assembly is correct and the problem is 
> in another place.

I'd look at the surrounding assembly as well, probably easiest 
when wrapping your inline asm in a trivial `extern(C++) void 
foo() { ... }` (no other functions, and using -betterC) for 
direct comparability with clang's output.


More information about the digitalmars-d-ldc mailing list