<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On 20 Nov 2012, at 14:52, Helmut Hartl wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Monaco; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><span class="Apple-style-span" style="font-family: monospace; ">While building under SmartOS in a buildzone<br>(IllumOS, former OpenSolaris) i have the problem that with<br>binutils 2.22 the fpc generated linker script line in ppas.sh<br><br>/opt/local/bin/gld -melf_x86_64 -s -L. -o my_program link.res<br><br>is not working anymore. Because the only targets the new binutils 2.22 support on solaris are elf_x86_64_sol2 and elf_i386_sol2.<br></span></span></blockquote></div><br><div>That's probably "supported by default". I'm sure it's possible to still build a binutils version that still supports regular elf_x86_64.</div><div><br></div><div>My suggestion would be to simply change the compiler to always use <span class="Apple-style-span" style="font-family: monospace; ">elf_x86_64_sol2/</span><span class="Apple-style-span" style="font-family: monospace; ">elf_i386_sol2 and require binutils 2.21 or higher on Solaris. It's not like there is a massive user base for that platform, nor very old Solaris/x86 </span><span class="Apple-style-span" style="font-family: monospace; ">systems</span><span class="Apple-style-span" style="font-family: monospace; "> </span><span class="Apple-style-span" style="font-family: monospace; ">that will have trouble supporting newer binutils versions.</span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">Apparently the Solaris ABI is in fact different from the regular x86 ELF abi, which is why that change was made in the first place. So the programs generated with </span><span class="Apple-style-span" style="font-family: monospace; ">-melf_x86_64/-m</span><span class="Apple-style-span" style="font-family: monospace; ">-melf_i386 were not properly ABI-compliant in the first place.</span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; "><br></span></div><div><span class="Apple-style-span" style="font-family: monospace; ">Jonas</span></div></body></html>