PATCH: Add --report-line-number-with-parentheses to linker

H.J. Lu hjl.tools@gmail.com
Sat Jul 25 02:16:00 GMT 2009


On Fri, Jul 24, 2009 at 6:10 PM, Mike Frysinger<vapier@gentoo.org> wrote:
> On Friday 24 July 2009 19:20:42 H.J. Lu wrote:
>> On Fri, Jul 24, 2009 at 4:10 PM, Ian Lance Taylor wrote:
>> > "H.J. Lu" writes:
>> >> Some IDE expects line number in linker messages surrounded by
>> >> parentheses.
>> >
>> > How about having people who use that IDE simply replace the linker with
>> > a shell script which invokes the real ld and runs sed on the output?
>>
>> It is slow and sed may not be available on that platform.
>
> sed's speed is irrelevant compared to the linking speed.  calling it "slow" in
> this context is ridiculous.
>
> rather than add some long winded format-specific option, why dont you make it
> a flexible argument.  --line-number-format="(#)" and the # gets replaced with
> the actual line number.

I could try something like it if it is acceptable.

-- 
H.J.



More information about the Binutils mailing list