Closed rkujawa closed 8 years ago
Actually not x.o
. Linking with -M shows:
------------------------------
00000000 .ctors (size 10)
00000000 - 00000010 INITEXIT(.ctors)
------------------------------
00000000 .dtors (size 18)
00000000 - 00000018 INITEXIT(.dtors)
------------------------------
These are the culprits, now where are they added...
Automatic constructors/deconstructors are added when using -amigahunk. Or so the vlink docs say. Don't know if that is relevant.
2016-02-04 10:24 GMT+01:00 Radosław Kujawa notifications@github.com:
Actually not x.o. Linking with -M shows:
00000000 .ctors (size 10)
00000000 - 00000010 INITEXIT(.ctors)
00000000 .dtors (size 18)
00000000 - 00000018 INITEXIT(.dtors)
These are the culprits, now where are they added...
— Reply to this email directly or view it on GitHub https://github.com/Sakura-IT/SonnetAmiga/issues/30#issuecomment-179727805 .
Constructor/destructors are generated by vlink, but -hunkattr affects only input sections read from the objects that we are linking.
Frank will take a look at applying hunkattr modifications for generated sections as well.
In other words, we'll probably need an updated vlink soon.
What are those sections used for? If there is no PPC access we can leave it at this.
Something generated by constructors/destructors in VBCC standard C library. It's likely it will be needed. Frank implemented hunkattr support for this, will try tomorrow vlink snapshot.
Fixed in vlink source dated today. Already installed it on the server.
@DvdBoon Can you test whether wosdb packaged in latest sonnet.lha works correctly?
https://sonnet.uguu.waw.pl/jenkins/job/sonnetamiga/87/artifact/sonnet.lha
I see that all the hunks now have $2005 as an attribute. And wosdb works nicely/correctly. Yay for the Altivec update. Now to find a Sonnet G4.
Currently, C executables linked with Sonnet-modified WarpOS target (
sonnet.o
instead ofwarpup.o
) still contain two hunks without0x2005
extended memory attribute.This can be observed for example, in
wosdb
. Even though I added a bunch of-hunkattr
parameters tovlink
.Investigating, I suspect
x.o
can be blamed here.Note hunk 6, 7 below: