diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-08-02 15:43:26 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-08-02 15:43:26 +0200 |
commit | 2ba2f096185c201607cdb1571e51e00e8b66e449 (patch) | |
tree | 2fdad117bdac87618c94a91316394253955e2150 /gdb | |
parent | 976f16630b1f7421d6693011333cf0f51417c498 (diff) | |
download | gdb-2ba2f096185c201607cdb1571e51e00e8b66e449.zip gdb-2ba2f096185c201607cdb1571e51e00e8b66e449.tar.gz gdb-2ba2f096185c201607cdb1571e51e00e8b66e449.tar.bz2 |
ELF: emit symbol table when there are relocations
Even when there are no symbols (e.g. all relocations being against
absolute values), a symbol table (with just the first placeholder entry)
needs to be emitted. Otherwise tools like objdump won't properly process
the relocations. The respective checks in assign_section_numbers() and
_bfd_elf_compute_section_file_positions() support also this view. Oddly
enough so far HAS_RELOC was only set when reading in an object file, but
not when generating one anew; the flag would only have been cleared when
no relocations were found (anymore).
While there also amend the affected function's leading comment to also
mention gas.
Diffstat (limited to 'gdb')
0 files changed, 0 insertions, 0 deletions