https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98634
--- Comment #4 from zuogang <zuogang at huawei dot com> --- (In reply to Jakub Jelinek from comment #1) > And the bug is? > This is due to copy relocations. > And, it has nothing to do with the compiler, it is how linker handles it. thanks for the reply, can you explain why the ld add a var into the bss section? why I add -fPIC, and the added var has gone?