1836605 Members
2040 Online
110102 Solutions
New Discussion

Get ld error

 
Jing Zhang
New Member

Get ld error

When I try to linking, I got the following error message in hp64:

ld: Cannot create a branch stub for a call from offset 0x82c0b4 in section .text of file /remote/srm109/NanoSim/build/ns_main_nsmgr/hp64/20040511_hp64_ns_main//HP9000_HPUX_11_64/interfaces/vcsace/pwtm_vcs_ace.o to symbol "__assert" in file /usr/lib/pa20_64/libc.sl. The calling section may be too large.
ld: Cannot create a branch stub for a call from offset 0x82c2c8 in section .text of file /remote/srm109/NanoSim/build/ns_main_nsmgr/hp64/20040511_hp64_ns_main//HP9000_HPUX_11_64/interfaces/vcsace/pwtm_vcs_ace.o to symbol "strcpy" in file /usr/lib/pa20_64/libc.sl. The calling section may be too large.
ld: The value 0x40000000fe69e6d0 does not fit when applying the relocation PCREL22F for symbol "strcpy" at offset 0x82c2c8 in section index 2005 of file /remote/srm109/NanoSim/build/ns_main_nsmgr/hp64/20040511_hp64_ns_main//HP9000_HPUX_11_64/interfaces/vcsace/pwtm_vcs_ace.o
736 errors.
*** Error exit code 1


Does any one can give me some advices? Any comment is welcome.

Thanks in advance.

Jing
4 REPLIES 4
Navin Bhat_2
Trusted Contributor

Re: Get ld error

what is the ld version and patching level?
Navin Bhat_2
Trusted Contributor

Re: Get ld error

I believe this is fixed in 11.23 (PHSS_30230) but one of the suggested work around was to use +nosectionmerge while creating the .o files.
ranganath ramachandra
Esteemed Contributor

Re: Get ld error

from the man page, +nosectionmerge is relevant to -r links. so if pwtm_vcs_ace.o was built with a -r link, you can try using +nosectionmerge at that stage. PHSS_30230 is an IA patch. for PA, you should look for PHSS_28869 for 11.00 & PHSS_28871 for 11.11 .
 
--
ranga
hp-ux 11i v3[i work for hpe]

Accept or Kudo

Jing Zhang
New Member

Re: Get ld error

Our ld version is 11.11.

I am not clear about the patch level.

After I put +nosectionmerge, it works fine.

Thanks a lot.

Another question, if we use the same ld and patch, do we need to put this option for hp32 build? Does this option have some side effect, for example: performance ....


Jing