[PATCH] D55276: ELF: allow non allocated sections to go into allocated sections
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 4 10:33:40 PST 2018
ruiu accepted this revision.
ruiu added a comment.
This revision is now accepted and ready to land.
LGTM.
Please add this as a test.
$ cat lld/test/ELF/linkerscript/merge-nonalloc.s
# REQUIRES: x86
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: echo "SECTIONS { .text : { *(.text) *(.nonalloc) } }" > %t.script
# RUN: ld.lld -shared -o %t.exe %t.script %t.o
# RUN: llvm-objdump -syms %t.exe | FileCheck %s
# CHECK: .text 00000000 nonalloc_start
_start:
nop
.section .nonalloc,"", at progbits
nonalloc_start:
.long 0xcafe
Repository:
rLLD LLVM Linker
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D55276/new/
https://reviews.llvm.org/D55276
More information about the llvm-commits
mailing list