Closed Dirbaio closed 4 years ago
It seems it has to do with INSERT AFTER
(see #266). I can't reproduce it without it. I also found that defining __ebss outside the section fixes it.
Thanks @Dirbaio ! I was having the same issue as you and it's now it's working for me after I made the change you mentioned ("defining __ebss outside the section").
This is happening to me when linking with C code. C code is compiled with clang 10 into a static lib and then linked with the crate. This causes the C code to break because globals are filled with garbage on boot, instead of zerofilled.
As you can see, .bss is 0x20011e08-0x200203ba but __ebss is at 0x20020334, in the middle of it.
rustc version: 1.44.0-nightly (b2e36e6c2 2020-04-22)