Hi,
I have started to build some code, a c++ library, on VMSx86 and the compilations went ok, more o less, but I get this error when linking the test program:
%ILINK-E-PCRELNOT32BITS, 32-bit PC-relative relocation overflowed
relocation section: .rela.text (section header entry: 3)
relocation type: RELA$K_R_X86_64_PC32
relocation entry: 3996
module: VSTRING
file: VLIBPLF_ROOT:[lib]libvlib.olb;1
%ILINK-E-NOIMGFIL, image file not created
I compile with pointer size 32 but also tried 64.
The vstring.cpp module is quite large, are there any limitations on x86?
Hopefully somebody can give me a hint what it can be.
I'm using cxx (clang) version 10.0.1 on OpenVMS V9.2 update 2.
Thanks in advance
Peter
Compile/Link problem x86
-
- VSI Expert
- Master
- Posts: 103
- Joined: Thu Aug 22, 2019 12:17 am
- Reputation: 0
- Status: Offline
Re: Compile/Link problem x86
$ LINK /SECT=CODE=P0
-
Topic author - Member
- Posts: 5
- Joined: Thu Nov 21, 2019 4:48 am
- Reputation: 0
- Location: Sweden
- Status: Offline
Re: Compile/Link problem x86
Thanks Sergey, but I i think you mean /segm=code=p0 and that helped!
I read the new linker manual but this was not obvious for me. Do you know where I can find more info?
Are there any disadvantages placing the code in p0?
Thanks Peter
Re: Compile/Link problem x86
The use of /SEGMENT=CODE=P0 is working around a compiler bug. The compiler accidentally placed data in the wrong PSECT and the linker was unable to reach it. Once the compilers are fixed (I think we've already fixed it), the qualifier will no longer be needed.
-
- Contributor
- Posts: 18
- Joined: Thu Apr 11, 2024 2:28 pm
- Reputation: 0
- Location: NEW DELHI
- Status: Offline
- Contact:
Re: Compile/Link problem x86
Hi, can anyone please provide a small cms library (of C and Macros) and related MMS and libraries so that i can check them in my m/c for validation purpose .I want to validate my vms m/c .
Last edited by vmsxpert on Thu Apr 25, 2024 1:33 pm, edited 1 time in total.
-
- Master
- Posts: 154
- Joined: Fri Jun 28, 2019 8:45 am
- Reputation: 0
- Location: South Tyneside, UK
- Status: Offline
- Contact:
Re: Compile/Link problem x86
have a search through the VMS freeware repositories, for example
https://www.process.com/resources/openvms/index.html
or
freeware 1 to 8 https://www.theberrymans.com/
https://www.process.com/resources/openvms/index.html
or
freeware 1 to 8 https://www.theberrymans.com/
Ian Miller
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].
[ personal opinion only. usual disclaimers apply. Do not taunt happy fun ball ].