Operating System - HP-UX
1832525 Members
7500 Online
110043 Solutions
New Discussion

Re: aCC compilation problem

 
R. Manickavel
Occasional Contributor

aCC compilation problem

This is the error I am getting while compiling the inStackDemo.C with aCC compiler. The compilation works fine with CC.

/usr/ccs/bin/ld: Invalid fixup: 0x72 in file intStackDemo.o

I do not know if the problem is to do with my code or the compiler because CC works fine.

Pls help me on this issue.

Thanks
Aji
Practice makes a man perfect
2 REPLIES 2
Alex Glennie
Honored Contributor

Re: aCC compilation problem

Not having access to your code or being a very good programmer doesn't help ..... but the following may help / be relevant ?

If initializing an array with the address of a static array, the following error may occur when building shared libraries:
static char a1[16];
void dummy() {
char *a[] = { a1 };
}
ld: Invalid loader fixup for symbol "BS$small"

Cause Text

Addresses can not be put in the constant area when compiling with +z.


So ......

Make the array static.
Or compile the file using the +T +z option.

Sam Nicholls
Trusted Contributor

Re: aCC compilation problem

Aji,

Also make sure that you have the latest ld patches. The invalid fixup error means that aCC did something that ld doesn't recognize.

11.0 - PHSS_22478
10.20 - PHSS_21110

-sam