Add gcc-ar, gcc-nm, gcc-ranlib

H.J. Lu hjl.tools@gmail.com
Thu Dec 2 23:31:00 GMT 2010


On Thu, Dec 2, 2010 at 3:44 PM, Dave Korn <dave.korn.cygwin@gmail.com> wrote:
> On 02/12/2010 23:09, H.J. Lu wrote:
>> On Thu, Dec 2, 2010 at 3:26 PM, Dave Korn wrote:
>>> On 02/12/2010 22:35, H.J. Lu wrote:
>>>> Hi,
>>>>
>>>> Here is the new implementation of gcc-ar, gcc-nm, gcc-ranlib.
>>>> It doesn't require any new gcc option.  OK for trunk?
>>>  The documentation isn't very detailed:
>>>
>>>> +In some cases, you may need to use the @command{gcc-ar},
>>>> +@command{gcc-nm} and @command{gcc-ranlib} commands to manage LTO
>>>> +object files.
>>>  Can it not say at least a little something about in what cases you may need
>>> to use them, and what the difference is between them and the regular binutils?
>>>
>>
>> Any improvements are more than welcome.
>
>  I'd happily do so, but I don't know what they're for!
>

They are used to handle object files with IR:

# nm y.o
0000000000000001 C __gnu_lto_v1
0000000000000000 T main
                 U printf
                 U sin
                 U strtol
# /export/build/gnu/gcc-lto/release/usr/gcc-4.6.0/bin/gcc-nm y.o
00000000 T main
         U strtol



-- 
H.J.



More information about the Gcc-patches mailing list