[llvm] [objcopy][coff] Place section name first in strtab (PR #145266)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 25 00:31:17 PDT 2025


================
@@ -10,6 +10,7 @@
 # CHECK-NEXT:   [    1a] symbol_aaa
 # CHECK-NEXT: }
 
+# Symbol or section name is added into strtab only if it exceeds 8 characters.
----------------
jh7370 wrote:

Let's put this comment at the start of the file, (using `##` in keeping with most llvm-objcopy tests, to help distinguish it from lit/FileCheck directives) and elaborate on it a bit more, i.e. something like:

"Show that section names appear before symbol names in the COFF strtab. These names are only added to the strtab if they exceed 8 characters."

https://github.com/llvm/llvm-project/pull/145266


More information about the llvm-commits mailing list