aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/py-disasm.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2025-04-14 14:22:49 +0200
committerJan Beulich <jbeulich@suse.com>2025-04-14 14:22:49 +0200
commit06d3221915577d421c4f3a1a9ee559d88e95acc2 (patch)
tree8866670c3b6e29f52118d987c3b8beb5ab3a8233 /gdb/python/py-disasm.c
parent55cee09736b3ea53c0c0558e8a3ba5a4987ecf32 (diff)
downloadbinutils-06d3221915577d421c4f3a1a9ee559d88e95acc2.zip
binutils-06d3221915577d421c4f3a1a9ee559d88e95acc2.tar.gz
binutils-06d3221915577d421c4f3a1a9ee559d88e95acc2.tar.bz2
bfd/COFF: propagate function size when copying/linking ELF objects
While COFF, unlike ELF, doesn't have a generic way to express symbol size, there is a means to do so for functions. When inputs are ELF, propagate function sizes, including the fact that a symbol denotes a function, to the output's symbol table. Note that this requires hackery (cross-object-format processing) in two places - when linking, global symbols are entered into a global hash table, and hence relevant information needs to be updated there in that case, while otherwise the original symbol structures can be consulted. For the setting of ->u.syment.n_type the later writing of the field to literal 0 needs to be dropped from coff_write_alien_symbol(). It was redundant anyway with an earlier write of the field using C_NUL.
Diffstat (limited to 'gdb/python/py-disasm.c')
0 files changed, 0 insertions, 0 deletions