Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were dropping the CanOmitFromDynSym bit when creating undefined symbols because of comdat. llvm-svn: 272812
- Loading branch information
Showing
4 changed files
with
21 additions
and
7 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
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,11 @@ | ||
; RUN: llvm-as %s -o %t.o | ||
; RUN: ld.lld -m elf_x86_64 %t.o %t.o -o %t.so -save-temps -shared | ||
; RUN: llvm-dis %t.so.lto.bc -o - | FileCheck %s | ||
|
||
target triple = "x86_64-unknown-linux-gnu" | ||
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | ||
|
||
$foo = comdat any | ||
@foo = linkonce_odr unnamed_addr constant i32 42, comdat | ||
|
||
; CHECK: @foo = internal unnamed_addr constant i32 42, comdat |