From eb81493e95c9f0e7feecd699758caa56b7d3514e Mon Sep 17 00:00:00 2001 From: Fangrui Song Date: Mon, 11 Sep 2023 11:08:58 -0700 Subject: [llvm-readelf] Add --extra-sym-info (#65580) GNU readelf introduced --extra-sym-info/-X to display the section name for --syms (https://sourceware.org/PR30684). Port the feature, which is currently llvm-readelf only. For STO_AARCH64_VARIANT_PCS/STO_RISCV_VARIANT_PCS, the Ndx and Name columns may not be aligned. --- llvm/docs/CommandGuide/llvm-readelf.rst | 4 ++++ llvm/docs/ReleaseNotes.rst | 2 ++ 2 files changed, 6 insertions(+) (limited to 'llvm/docs') diff --git a/llvm/docs/CommandGuide/llvm-readelf.rst b/llvm/docs/CommandGuide/llvm-readelf.rst index 2ad217c..6ee4a5d 100644 --- a/llvm/docs/CommandGuide/llvm-readelf.rst +++ b/llvm/docs/CommandGuide/llvm-readelf.rst @@ -77,6 +77,10 @@ OPTIONS ``GNU`` (the default) output mimics the equivalent GNU :program:`readelf` output. ``JSON`` is JSON formatted output intended for machine consumption. +.. option:: --extra-sym-info + + Display extra information (section name) when showing symbols. + .. option:: --section-groups, -g Display section groups. diff --git a/llvm/docs/ReleaseNotes.rst b/llvm/docs/ReleaseNotes.rst index 226ee60..533c93e 100644 --- a/llvm/docs/ReleaseNotes.rst +++ b/llvm/docs/ReleaseNotes.rst @@ -166,6 +166,8 @@ Changes to the LLVM tools * llvm-symbolizer now treats invalid input as an address for which source information is not found. +* llvm-readelf now supports ``--extra-sym-info`` (``-X``) to display extra + information (section name) when showing symbols. Changes to LLDB --------------------------------- -- cgit v1.1