Improve obdump symbol filtering.

Paul Brook paul@codesourcery.com
Mon May 21 15:17:00 GMT 2007


Objdump (find_symbol_for_address) currently has logic to avoid certain 
target-specific symbols when printing the symbol for an address. This is used 
on ARM to skip mapping symbols.

The current logic for this is rather lame, and only really works if there is a 
regular symbol at the same address as the mapping symbol.

Fortunately find_symbol_for_address already has reasonably sophisticated logic 
for finding a symbol in a particular section. The attached patch merges the 
target constraints into that logic.

Arm is currently the only target that this effects. The behavior of other 
targets should be identical before and after this patch.

Tested on i686-linux, arm-none-eabi and arm-elf.
Ok?

Paul

2007-05-21  Paul Brook  <paul@codesourcery.com>

	bunutils/
	* objdump.c (find_symbol_for_address): Merge section and target
	specific filtering code.

	ld/testsuite/
	* ld-arm-mixed-lib.d: Update expected output.
	* ld-arm/arm-app.d: Ditto.
	* ld-arm/mixed-app.d: Ditto.
	* ld-arm/arm-lib-plt32.d: Ditto.
	* ld-arm/arm-app-abs32.d: Ditto.
	* ld-arm/mixed-app-v5.d: Ditto.
	* ld-arm/armthumb-lib.d: Ditto.
	* ld-arm/arm-lib.d: Ditto.

	gas/testsuite/
	* gas/arm/backslash-at.d: Update expected output.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.reject_sym
Type: text/x-diff
Size: 10484 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20070521/a5d5b640/attachment.bin>


More information about the Binutils mailing list