jwt27 / build-gcc

Shell scripts to build various gcc cross-compilers (primarily djgpp)
https://jw.h4ck.me/debian/
GNU General Public License v3.0
41 stars 9 forks source link

extra section appeared? #40

Closed stsp closed 8 months ago

stsp commented 8 months ago

Hi.

I have my own djgpp-compatible stub, and using it I've noticed some strange change in what the latest djgpp compiles. Previously, the section layout was: .text, .data, .bss. Now however I see this:

Section .text pa 0 va 8049000 size 33d0 foffs 1000
Section /4 pa 0 va 804d000 size 0 foffs 0
Section .data pa 0 va 804d000 size 128 foffs 5000
Section .bss pa 0 va 804d140 size 2df0 foffs 0

What is section /4? I suspect you (or someone else) added some bug. But it wasn't triggered by the default stub, because .bss doesn't need to be loaded anyway. Note that even looking into the raw file, I can see this /4 after .text, so its not like my stub have faked it out. So what can that be?

stsp commented 8 months ago

Hmm, maybe I just forgot to mark some section as .text, needs to look further myself...