This is the mail archive of the binutils@sourceware.org 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]
Other format: [Raw text]

Re: Howto add HP-UX SOM object file support


On 6/4/07, Steve Ellcey <sje@cup.hp.com> wrote:
> I have compiled binutils-2.17 for both HP-UX Itanium (B.11.23) and
> HP-UX PA-RISC 2.0 (B.11.11 ). But there is no support for (old) HP-UX
> SOM object file format, for example "nm" do not understand files which
> are " PA-RISC1.1 shared library -not stripped".
>
> I think I must add some target to the configure's "--enable-targets="
> option... But what is the correct one?
> Could you please help me with this issue, thanks a lot!
>
> Best Regards
> Tippa

If you built on a PA-RISC box then I am surprised that nm wouldn't
understand the SOM files since that is the default format for HP-UX
PA-RISC boxes when you are in 32 bit mode.  In 64 bit mode it would use
ELF, but you should only get 64 bit mode if you explicity ask for it.
(i.e.  use target of hppa64-hp-hpux11.11).  If you are building on
PA-RISC I would try using a host/build/target of hppa1.1-hp-hpux11.11 or
hppa2.0w-hp-hpux11.11.  If you are building on Itanium, you could use
one of those targets with the --enable-targets option.

What error do you get when run nm on an unstripped shared library?  When
I run a 2.17 nm on one of the HPPA HP-UX 11.11 system libraries in
/usr/lib I do not get any errors.

Steve Ellcey
sje@cup.hp.com


Hi Steve, and thanks for your comment! Here you can see the errror message. Note also what the "nm --help" shows below. Regards Tippa.

tippa@hp11idev> uname -a
HP-UX hp11idev B.11.11 U 9000/800 2252141562 unlimited-user license
tippa@hp11idev>
tippa@hp11idev> nm --version
GNU nm 2.17
Copyright 2005 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
tippa@hp11idev>
tippa@hp11idev> file /usr/lib/libm.sl
/usr/lib/libm.sl:       PA-RISC1.1 shared library -not stripped
tippa@hp11idev> nm /usr/lib/libm.sl
nm: /usr/lib/libm.sl: File format not recognized
tippa@hp11idev>

And "nm --help" shows:
nm: supported targets: elf64-hppa elf64-hppa-linux elf64-little
elf64-big elf32-little elf32-big srec symbolsrec tekhex binary ihex
hpux-core


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