From: WongCK <won...@ya...> - 2025-04-30 12:44:38
|
Just to see whats going on, i loaded the strip -s PRG and the stripex PRG into a HEX editor in windows. Compared side by side by just eyeballing it - totally non-scientific method and mostly just stabbing into the dark. The code matches each other in most places... of course it should.The strip -s PRG has word ELF dotted around the place not found in stripex PRG (we know this is as expected).When the stripex PRG comes to the end, the strip -s PRG of course continues as it is bigger. The area where the strip -s PRG continues becomes a sea of zeros. Until it comes to a bunch of strings. These strings are duplicated from the segment above (.data or .rodata I guess).After that another sea of zeros follows.Then a bunch of code (scrambled text) which I can use the find function to find same groups of code elsewhere in the above section (found 2 times in strip -s PRG). The same group of code can only be found once in the stripex PRG. So looks like these are some bunch of buffers that was appended by the linker. And stripex rightfully removed them. Great !!! Is this a weird feature that I have found.... probably. The program runs like it should so nothing bad.My guess is that it only uses more storage space on the HDD. Mint may not load those duplicated parts as they are not part of .text or .data. I am probably the only person seeing this phenomena as I compile on the Falcon..... that's where the enjoyment happens. On Wednesday, 30 April 2025 at 04:38:21 pm SGT, Miro Kropáček <mir...@gm...> wrote: On Wed, 30 Apr 2025 at 10:15, WongCK via Freemint-discuss <fre...@li...> wrote: So I did not have file on my system, so I grabbed it from Thorsten website.... seriously? 8.8 MB for just file? Not sure what you mean, it's part of the mintbin package? Looks like 40K comes from trailer stuff that stripex skipped at the last line. 0x9be4 is damn near 40K.No idea what are those. I've tried it on ScummVM (a 21 MB executable stripped). For me, stripex takes out 2664 bytes: 0xA0 (header) + 0x234 (symbols) and 0x794 (trailer). So I really wonder where it comes from in your case. -- http://mikro.atari.org_______________________________________________ Freemint-discuss mailing list Fre...@li... https://lists.sourceforge.net/lists/listinfo/freemint-discuss |