Question ~ Using objcopy to convert a .a to .o
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.
> -----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
>> 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.
>> rtems-users mailing list
>> rtems-users at rtems.com
> rtems-users mailing list
> rtems-users at rtems.com
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