www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2015/09/29/00:51:11

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: <mu8em4$bas$1 AT usenet DOT news DOT interia DOT pl> <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>
<muc36e$t1p$1 AT usenet DOT news DOT interia DOT pl>
From: "Andris Pavenis (andris DOT pavenis AT iki DOT fi) [via djgpp AT delorie DOT com]" <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: <muc36e$t1p$1@usenet.news.interia.pl>
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

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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019