Originally posted by: SystemAdmin
I have a set of csects with predefined names in each object that contain data needed by a software tool. I want the csect named .foo_bars in object foo2.o to be appended onto the end of the csect named .foo_bars in object foo1.o and the csect names .foo_bums in foo2.o to be appended onto the end of .foo_bums in foo1.o. I don't really care about the appending order (link order is fine), as long as all the .foo_bars data is consecutive and the .foo_bums data is consecutive. My software tool will then reference each data block by the unique section symbol.
What AIX ld is doing is interspersing the csects so the final data block contains something like bars bums bars bums which seems contrary to what the ld doc says it should do.
FWIW, this is what ld does, or can be made to do, on every Unix, VMS, and Windows system that I've worked with and I'm hoping it's possible to make it work on AIX.
--Doug
#AIX-Forum