[PATCH] D63432: [ELF] Allow placing SHF_MERGE sections with different alignments into the same MergeSyntheticSection

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 18 02:43:41 PDT 2019


MaskRay marked an inline comment as done.
MaskRay added inline comments.


================
Comment at: test/ELF/merge-reloc-entsize.s:13
+
+# HEX-NEXT: Hex dump of section '.cst':
+# HEX-NEXT: 0x00000000 01000000 00000000 02000000
----------------
peter.smith wrote:
> These appear to be unused. I think readelf -x .cst may not be the best here as it only outputs the first, and includes file padding for alignment. Perhaps llvm-objdump -s which gives:
> 
> ```
> Contents of section .cst:
>  0000 01000000 00000000 02000000
> Contents of section .cst:
>  0000 01000000 00000000 03000000 00000000
> ```
> 
Thanks! I noticed this issue (llvm-readelf -x does not dump all sections named `.cst`). Created D63475 to fix that.

I forgot to add back the deleted `llvm-readelf -x .cst` RUN line, will add it back in a minute.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D63432/new/

https://reviews.llvm.org/D63432





More information about the llvm-commits mailing list