X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Subject: Re: djgpp to Linux ARM cross binutils To: djgpp AT delorie DOT com References: <5607D4C3 DOT 4040800 AT gmx DOT de> <4b10ba83-055b-4ff9-bdd1-81b37c9aee36 AT googlegroups DOT com> <56083B83 DOT 6040707 AT iki DOT fi> <56086184 DOT 9070505 AT gmx DOT de> From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" Message-ID: <560A189E.3030709@iki.fi> Date: Tue, 29 Sep 2015 07:50:38 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 09/28/2015 10:07 PM, Wiktor S. (wswiktorSP AT Mpoczta DOT fm) [via djgpp AT delorie DOT com] wrote: >> The issue reported by user cannot be reproduced on any system where I >> can check. >> It may be a bash issue or a sed issue, but without accurate >> knownledge about >> the user's system it becomes impossible to reproduce and to debug. > > I made a clean install of DJGPP from all the files you have listed, and everything compiles. > > Although it does not work. > > 'as' compiles a bit of ARM assembly, the resulting .o looks like an ELF, but is not recognized by > ld nor objdump. > > perhaps this is a makefile or #ifdef problem and some wrong constants are picked. > > I won't have time to pursue this, at least for now. > > "does not work due to bugs" is the outcome of the experiment :-) > > > Go some ARM assembler sample: https://community.arm.com/groups/processors/blog/2010/02/11/hello-world-in-assembly and tried with my Linux build for the same target and DJGPP host (under DOSBOX). Got the same problem - object file format not recognized However; andris AT ap gas]$ file HELLO.O HELLO.O: ELF 32-bit LSB relocatable, ARM, EABI5 version 1 (SYSV), not stripped Linux binutils recognize format but is unable to disassemble it. I can however show symbols etc. I would recommend ro try to build cross-binutils for some more common host (like Linux or Cygwin) and verify that binutils works OK for that target at first. Andris