Operating System - HP-UX
1834533 Members
3067 Online
110069 Solutions
New Discussion

Invalid loader fixup in text space needed...

 
devshlom
Regular Advisor

Invalid loader fixup in text space needed...

Hi,

I'm trying to create a shared library on HPUX 11.23 and got the following error:
/usr/ccs/bin/ld: Invalid loader fixup in text space needed in output file for symbol "CCACSXXX::~CCACSXXX()" in input file "my_file"
collect2: ld returned 1 exit status

Do you have any idea?
1. The same makefile worked for Solaris,aix and linux

2. I tried it as is since it might be fixed by installaing a patch... if not, I will try to generate a small shared library (so) in order to give you more detailed information.

3. My Env:
Using built-in specs.
Target: hppa2.0w-hp-hpux11.23
Configured with: ../gcc/configure
Thread model: posix
gcc version 4.2.2


tx,
shlom
4 REPLIES 4
Dennis Handly
Acclaimed Contributor

Re: Invalid loader fixup in text space needed...

>ld: Invalid loader fixup in text space

This is linker-speak for you didn't generate PIC code. For HP's compilers you need +z/+Z.
For gcc, you need -fpic.
devshlom
Regular Advisor

Re: Invalid loader fixup in text space needed...

Hi,

it didn't solve the problem I specified - I might have some other problems... so I'm gonna try creating small shared lib for HPUX... and then get back.

BUT anyway what's the meaning of this flag?

tx
Dennis Handly
Acclaimed Contributor

Re: Invalid loader fixup in text space needed...

>BUT anyway what's the meaning of this flag?

Generate code for a shlib, Position Independent Code.
devshlom
Regular Advisor

Re: Invalid loader fixup in text space needed...

I will open more relevant thread for shared object creation