Ryan Mansfield(deleted)
|
Re: How to invoke `ld -r` equivalent using qcc?
|
Ryan Mansfield(deleted)
04/10/2012 12:49 PM
post92510
|
Re: How to invoke `ld -r` equivalent using qcc?
On 12-04-10 12:26 PM, Allen Zhao wrote:
> This must be a FAQ, but as a QNX newbies, I have no other places to turn to...
>
> I am trying to combine several .o files into a single .o for later use, usually, on linux/unix, I will use `ld -r` to
do this, but I have tried in vein to invoke this using `qcc -Wl,-i`. The problem is not with the partial linking step (i
.e. `ld -r` to create the libgtcrypto.o in the example), but with the final linking:
The problem is actually with the creation of the relocatable object.
During creation qcc is automatically pulling in the startup crt files
into the relocatable output, and then when you do the final link, the
startup objects are being brought into the output a second time. When
creating your relocatable object, you should use -nostdlib, which will
imply -nostartup as well.
Regards,
Ryan Mansfield
|
|
|