Kingcom / armips

An assembler for various ARM and MIPS platforms. Builds available at http://buildbot.orphis.net/armips/
MIT License
363 stars 77 forks source link

Nobits sections are no longer relocated #244

Open Mr-Wiseguy opened 5 months ago

Mr-Wiseguy commented 5 months ago

As of a8d71f0f279eb0d30ecf6af51473b66ae0cf8e8d, which came from #240, sections marked with SHT_NOBITS are no longer relocated. This is incorrect, as SHT_NOBITS only means that the section isn't supposed to end up in the resulting binary. Virtual addresses should still be relocated, otherwise .bss sections from compiled C code will have invalid addresses compared to the other sections imported from the same object file.