[PATCH] New option --print-gc-sections

Eric Botcazou ebotcazou@adacore.com
Wed Apr 5 07:48:00 GMT 2006


> If you want to use addr2line on relocatable object files, I suppose this
> is a reasonable idea.

First try attached, tested on AMD64/Linux.


2006-04-05  Eric Botcazou  <ebotcazou@adacore.com>

	* addr2line.c (long_options): Add new option 'section'.
	(usage): Document new -j/--section option.
	(find_offset_in_section): New function.
	(translate_addresses): Add 'section' parameter.
	If it is non-null, call find_offset_in_section on it.
	(process_file): Add 'section_name' parameter.
	If it is non-null, look for the section in the BFD object.
	Pass the section to translate_addresses.
	(main): Handle new -j option.
	Pass the section name to process_file.
	* doc/binutils.texi (addr2line): Document new -j/--section option.


-- 
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: f115-010-3_217.diff
Type: text/x-diff
Size: 7089 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20060405/f1e90e78/attachment.bin>


More information about the Binutils mailing list