Question ~ Using objcopy to convert a .a to .o

Joel Sherrill joel.sherrill at OARcorp.com
Thu Jun 5 21:05:28 UTC 2008


Amalaye Oyake wrote:
> Thanks ... you just have to love the Swiss army knife called binutils. As an
> aside can objcopy do the same thing?
>
>   

Depending on what you are doing, the ld option --whole-archive
may be of use.

--joel
> Regards,
> Amalaye
> -----Original Message-----
> From: Steven Grunza [mailto:grunza at ulticom.com]
> Sent: Thursday, June 05, 2008 1:59 PM
> To: Amalaye Oyake
> Subject: RE: Question ~ Using objcopy to convert a .a to .o
>
> I would suggest taking a look at the ar man page, specifically the -x
> (extract) option.
>
>
>   
>> -----Original Message-----
>> From: rtems-users-bounces at rtems.org
>> [mailto:rtems-users-bounces at rtems.org] On Behalf Of Amalaye Oyake
>> Sent: Thursday, June 05, 2008 4:43 PM
>> To: rtems-users at rtems.org
>> Subject: Question ~ Using objcopy to convert a .a to .o
>>
>> Hello,
>>
>> I want to use objcopy to copy some objects from a static
>> library (.a) into a standalone object (.o).
>>
>> I have a very good reason why I want to do this ... how do I
>> do it though? I have only marginally tinkered with objcpy ...
>>
>> Any pointers would be appreciated.
>>
>> Regards,
>> Amalaye
>>
>>
>>
>> _______________________________________________
>> rtems-users mailing list
>> rtems-users at rtems.com
>> http://rtems.rtems.org/mailman/listinfo/rtems-users
>>
>>     
>
> _______________________________________________
> rtems-users mailing list
> rtems-users at rtems.com
> http://rtems.rtems.org/mailman/listinfo/rtems-users
>   


-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel.sherrill at OARcorp.com        On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985





More information about the users mailing list