<html dir="ltr"><head></head><body style="text-align:left; direction:ltr;"><div><br></div><div><b>Real Subject : hardening on PPC64 and now Arm, Amd64...</b></div><div><br></div><div>Abou, this is getting crazy ! I tried the hardening stuff on an Arm RasPi, using the old Buster based OS but current FPC.</div><div><br></div><div>And it behaved in exactly the same way. The hardened binary will not run. So, I looked a bit closer and noted that the binary is linked to be run by "/lib/ld64.so.1" - that does not exist on my RasPI. So I jumped to a Bullseye AMD64 VM and exactly the same problem. The hardened Hello World app will not run, same reason, it needs /lib/ld64.so.1 to run it and /lib/ld64.so.1 does not exist !</div><div><br></div><div>So, on the same box, I built my app, tomboy-ng, it builds and runs fine hardened. Its interpreter is /lib64/ld-linux-x86-64.so.2. Only difference is that my app links in a whole lot of lazarus (and RTL?) units. Otherwise, exactly the same command line.</div><div><br></div><div>I have added an entry about this on the bug report I put in a week or so ago on the FPC bug list, <a href="https://gitlab.com/freepascal.org/fpc/source/-/issues/39451">https://gitlab.com/freepascal.org/fpc/source/-/issues/39451</a></div><div><br></div><div>There has to be a point where FPC decides to use /lib64/ld-linux-x86-64.so.2 instead of /lib/ld64.so.1, I will try to find just what triggers that change.</div><div><br></div><div>Davo</div><div> </div><div>On Tue, 2021-11-30 at 09:00 +0100, Abou Al Montacir wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex"><div><br></div><div>I just check build logs and it looks like -Cg is supplied only for amd64. I cloud not find them for ppc64el or evem arm*.</div><div><br></div><div>So maybe you are just pointing a serious bug that none identified in the past. I need more time to analyse the situation.</div><div><br></div></blockquote><div><br></div><div>Hmm, thats interesting. </div><div><br></div><div>PPC64le - I have tried the older FPC322 and it has the same problem. Little point in going back to 304, it was made before Hardening became popular IMHO. </div><div><br></div><div>Is this likely to have Lazarus AND FPC removed from PPC64le ? If you think thats a possibility, I will have something to append to my bug report. :-)</div><div><br></div><div>And, perhaps, my testing</div><div><br></div><div>ARM - I believe, but have not tested, that it works fine. I have a Pi somewhere with the 32bit OS on it ....</div><div><br></div><div>Davo</div>
</body></html>