aros arm binutils generate real executables

magorium · 708

magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
on: January 05, 2022, 04:42:09 PM
Hi,


When I cross compile from *nix-64 to AROS-arm the binutils seem to create a real elf executable (instead of relocatable) and also reporting a different ABI version (1 instead of 0).


I'm unable to comprehend why this happens. Binutils patches and collect-aros originates from deadw00ds github. Did some change happened for hosted arm ?


Anyone out there that has any idea as of why ? and not less important how to handle this situation ?, because i'm stuck atm.


I would simply like to compile some things for AROS-arm.


miker1264

  • Legendary Member
  • *****
    • Posts: 1827
    • Karma: +84/-6
Reply #1 on: January 05, 2022, 06:07:51 PM
Hi,


When I cross compile from *nix-64 to AROS-arm the binutils seem to create a real elf executable (instead of relocatable) and also reporting a different ABI version (1 instead of 0).


I'm unable to comprehend why this happens. Binutils patches and collect-aros originates from deadw00ds github. Did some change happened for hosted arm ?


Anyone out there that has any idea as of why ? and not less important how to handle this situation ?, because i'm stuck atm.


I would simply like to compile some things for AROS-arm.

Just a guess. Michal Schultz has been working with AROS ARM development. The "1" is ABIv1 instead of ABIv0.




magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #2 on: January 05, 2022, 10:48:31 PM
Just a guess. Michal Schultz has been working with AROS ARM development. The "1" is ABIv1 instead of ABIv0.
ah, thx. I see.


Ok, so the current code is a bit too hocus pocus for me atm but reverting to old svn aros tree and using the collect-aros from that, solved the issue for me now.


Note to self: current available collect-aros from github is unable to support standalone (cross) compilation for available hosted arm.


deadwood

  • AROS Developer
  • Legendary Member
  • *****
    • Posts: 1524
    • Karma: +118/-0
Reply #3 on: January 06, 2022, 12:30:54 AM
Indeed Michal was working on changing the executable format in the main AROS repository. You mention using binutils patches from my repository - for clarity - arm is not maintained in my repository so I don't know how good or bad these patches are.



magorium

  • Legendary Member
  • *****
    • Posts: 632
    • Karma: +62/-0
  • Convicted non contributor
Reply #4 on: January 06, 2022, 02:54:53 PM
Thank you for the confirmation deadw00d.

I've not been keeping track for a longer period and right before that i had my scripts updated to use your github repo instead of using the old svn. So i was wrecking my brains there for a while  :)

I'll try to determine what differs and if it can easily restore the hosted support with a patch to the current code (if even necessary). The quickest for me now was simply to fall back to the sources from the old svn tree.