This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
>2010/7/20 Maciej W. Rozycki <macro@linux-mips.org>: > On Mon, 19 Jul 2010, Richard Sandiford wrote: > >> It would certainly be possible to do the same thing in objdump, >> and FWIW, I did wonder about that when adding the readelf -A GOT dump. >> The problem is that, in a multi-GOT world, the annotations are only >> ever going to be a best guess. ?If the disassembler sees: >> >> ? ? ?lw ? ?$2,-32000(gp) >> >> it doesn't in general know whether gp points to the primary >> (ABI-defined) GOT, or to some secondary GOT. ?If it guesses >> right, the annotation would be useful, but if it guesses wrong, >> the annotation would be very misleading. ?This is different from >> the current <foo> markers, which are always accurate (or at least, >> _should_ always be accurate). > > ?Can the GOT pointer switch between GOTs within a single function? > > ?Maciej > I don't have a multi-got ELF at hand. I have no idea what the objudmp format look like for a multi-got ELF. The guess ability of the script will be improved in the future when me or somebody else get a multi-got ELF. By now, I just modify the script a little to make it easier for the user. The use can simply run `pic-elf-objdump.sh UR_ELF' to get the guess function calls. PRC Jul 21,2010
Attachment:
pic-elf-objdump.sh
Description: Bourne shell script
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |