[PATCH] D43799: Don't allocate a header bellow address 0
James Henderson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 27 01:37:15 PST 2018
jhenderson added inline comments.
================
Comment at: test/ELF/linkerscript/header-phdr2.s:3-4
+# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o
+# RUN: echo "PHDRS { foobar PT_LOAD FILEHDR PHDRS; } \
+# RUN: SECTIONS { .text : { *(.text) } : foobar }" > %t.script
+# RUN: ld.lld --script %t.script %t.o -o %t
----------------
I think it's been mentioned before that it's better to use multiple echoes and ">>" appending, to get line breaks in the script, making it easier to debug with.
https://reviews.llvm.org/D43799
More information about the llvm-commits
mailing list