Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't GC non-alloc mergeable section pieces
Differential revision: https://reviews.llvm.org/D25033 llvm-svn: 282708
- Loading branch information
1 parent
1abe30a
commit d277884
Showing
5 changed files
with
31 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.ident "bar" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
# REQUIRES: x86 | ||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o | ||
# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %p/Inputs/comment-gc.s -o %t2.o | ||
# RUN: ld.lld %t.o %t2.o -o %t1 --gc-sections -shared | ||
# RUN: llvm-objdump -s %t1 | FileCheck %s | ||
|
||
# CHECK: Contents of section .comment: | ||
# CHECK-NEXT: 0000 00666f6f 00626172 00 .foo.bar. | ||
|
||
.ident "foo" | ||
|
||
.globl _start | ||
_start: | ||
nop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters