This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: 2.9.1.0.19a vs 2.9.5.0.21


Ian Lance Taylor wrote:
> 
> There is no elf32arm linker emulation in the binutils sources.  There
> is only an armelf emulation.
> 

Corel/Rebel and Cygnus ended up working on independent ARM ELF ports.  The
elf32arm emulations are from the old binutils (2.9.1.xx).  You can find RPM's of
that on netwinder.org.  When the two ports were merged, we ended up with new
names.  Your problem can be fixed in one of several ways.

1) Get an older version of binutils from netwinder.org.  2) I can provide you
with a version of 2.95.2 that uses the new binutils by default (though it hasn't
undergone regression testing).  3) Edit the compiler specs file and replace
elf32arm and elf32arm26 in the link spec with the new values armelf-linux and
armelf-linux26.  You also need to add -p to the specs line.  A copy of the link
line in my spec file follows:

*link:
%{h*} %{version:-v}    %{b} %{Wl,*:%*}    %{static:-Bstatic}   
%{shared:-shared}    %{symbolic:-Bsymbolic}
%{rdynamic:-export-dynamic}    %{!dynamic-linker:-dynamic-linker
/lib/ld-linux.so.2}    -X    %{mbig-endian:-EB}
%{mapcs-26:-m armelf_linux26} %{!mapcs-26:-m armelf_linux} -p

Don't forget the -p when editing.  If hello world crashes, you probably forgot.

Scott

-- 
Scott Bambrough - Software Engineer
REBEL.COM    http://www.rebel.com
NetWinder    http://www.netwinder.org

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]