[PATCH] Pretty-printing plt entries on ARM

Yury Gribov y.gribov@samsung.com
Thu Mar 6 09:43:00 GMT 2014

Hi all,

The attached patches implements draft support for pretty-printing 
elements of .plt on ARM targets. I'm not sure whether design is sane and 
I'm open for suggestions from Binutils gurus.

Counting plts for ARM is non-trivial because it's plt entries (at least 
on gnueabi) can have variable size (depending on Thumb stubs and/or 
--long-plt). Thus we can't use existing backend's plt_sym_val callback - 
searching for i-th plt element will take linear time which is probably 
unacceptable. I suggest to solve this problem by keeping information 
about (i-1)-th element. The first patch achieves this goal by adding 
"context" argument into plt_sym_val (only ARM targets will use it for now).

The second patch contains the plt_sym_val implementations for gnueabi 
and nacl and test updates.

Host tests ran without regressions for me for:
* arm-none-eabi
* arm-none-linux-gnueabi
* arm-none-vxworks
* arm-none-nacl
* arm-none-symbianelf

-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm_pretty_plt_1.diff
Type: text/x-diff
Size: 11403 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140306/6322c494/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm_pretty_plt_2.diff
Type: text/x-diff
Size: 151395 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20140306/6322c494/attachment-0001.bin>

More information about the Binutils mailing list