[PATCH] D113771: [ELF] Support the "read-only" memory region attribute

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 22 11:25:50 PST 2021


MaskRay added inline comments.


================
Comment at: lld/test/ELF/linkerscript/memory-readonly.test:11
+
+CHECK: Name     Type      Address          Off           Size
+CHECK: .text    PROGBITS  0000000000009000 {{[0-9a-f]+}} 000004
----------------



================
Comment at: lld/test/ELF/linkerscript/memory-readonly.test:12
+CHECK: Name     Type      Address          Off           Size
+CHECK: .text    PROGBITS  0000000000009000 {{[0-9a-f]+}} 000004
+CHECK: .rodata  PROGBITS  0000000000009004 {{[0-9a-f]+}} 000008
----------------



================
Comment at: lld/test/ELF/linkerscript/memory-readonly.test:13
+CHECK: .text    PROGBITS  0000000000009000 {{[0-9a-f]+}} 000004
+CHECK: .rodata  PROGBITS  0000000000009004 {{[0-9a-f]+}} 000008
+CHECK: .data    PROGBITS  0000000000008000 {{[0-9a-f]+}} 000010
----------------



================
Comment at: lld/test/ELF/linkerscript/memory-readonly.test:14
+CHECK: .rodata  PROGBITS  0000000000009004 {{[0-9a-f]+}} 000008
+CHECK: .data    PROGBITS  0000000000008000 {{[0-9a-f]+}} 000010
+
----------------



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

https://reviews.llvm.org/D113771



More information about the llvm-commits mailing list