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

ld problem on hppa64-hp-hpux11.00


Hi,

I am experienceing some problems when using GNU ld 64 bit on a hpux
11.00 machine.
There seems to be a magic boundary of about 12MB binary size (stripped).
Binaries that are below that number in size work perfect, while binaries
bigger than 12 mb "memory fault" on startup. I can trigger this by
adding some dummy object to a working program, so it's size get
increased above the 12 mb.
When I link the same object and libs with the hpux system linker the
programm works.
I tried version : GNU ld version 2.14.91 20040409 as well as older
versions (2.13, 2.12).

I am not quite sure what infos you might need to debug, so feel free to
ask...
Here is a "chatr <file>" for the working binary (test4 linked with hpux
ld) and the non working binary (test3 linked with GNU ld):

------------------------------------------------------------------------
------
 chatr test3 test4
test3:
         64-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third  Not Defined
         shared library list:
             libcompat.1.sl
             libframe.1.sl
             libq.1.sl
             libpthread.1
             libm.2
             libc.2
         shared library binding:
             deferred
         global hash table disabled
         shared library mapped private disabled
         shared vtable support disabled
         segments:
             index type     address      flags size
                 3 data 4000000000001000 ----c    D (default)
                 4  unk 8000000000001000 -----    D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
test4:
         64-bit ELF executable
         shared library dynamic path search:
             LD_LIBRARY_PATH    enabled  first
             SHLIB_PATH         enabled  second
             embedded path      enabled  third
.:/usr/local/pa20_64ld/lib/gcc/h
ppa64-hp-hpux11.00/3.4.0:/usr/ccs/bin:/usr/ccs/lib/pa20_64:/opt/langtool
s/lib/pa
20_64:/usr/local/pa20_64ld/lib/gcc/hppa64-hp-hpux11.00/3.4.0/../../..
         shared library list:
             libcompat.1.sl
             libframe.1.sl
             libq.1.sl
             libpthread.1
             libm.2
             libc.2
         shared library binding:
             deferred
         global hash table disabled
         shared library mapped private disabled
         shared vtable support disabled
         segments:
             index type     address      flags size
                 5 text 4000000000000000 z---c    D (default)
                 6 data 8000000100000000 ---m-    D (default)
         executable from stack: D (default)
         kernel assisted branch prediction enabled
         lazy swap allocation for dynamic segments disabled
------------------------------------------------------------------------
----------------------

... Any help appreciated
Sven Traenkle
Zwen@zwen.de


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