forked from GPUOpen-Drivers/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merged master:116e38fd8b8 into amd-gfx:ac9866a082e
Local branch amd-gfx ac9866a Merged master:f4d42732653 into amd-gfx:46422bde7eb Remote branch master 116e38f lld: add basic static library search
- Loading branch information
Showing
41 changed files
with
1,534 additions
and
388 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,30 @@ | ||
# REQUIRES: x86 | ||
|
||
# RUN: mkdir -p %t | ||
# | ||
# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %p/Inputs/libgoodbye.s -o %t/goodbye.o | ||
# RUN: llvm-ar --format=darwin crs %t/libgoodbye.a %t/goodbye.o | ||
# | ||
# RUN: llvm-mc -filetype obj -triple x86_64-apple-darwin %s -o %t/test.o | ||
# RUN: lld -flavor darwinnew -o %t/test -Z -L%t -lgoodbye %t/test.o | ||
# | ||
# RUN: llvm-objdump --syms -d -r %t/test | FileCheck %s | ||
|
||
# CHECK: SYMBOL TABLE: | ||
# CHECK: {{0+}}[[ADDR:[0-9a-f]+]] g O __TEXT,__cstring _goodbye_world | ||
|
||
# CHECK: Disassembly of section __TEXT,__text | ||
# CHECK-LABEL: <_main>: | ||
# CHECK: leaq {{.*}}(%rip), %rsi # [[ADDR]] <_goodbye_world> | ||
|
||
.section __TEXT,__text | ||
.global _main | ||
|
||
_main: | ||
movl $0x2000004, %eax # write() | ||
mov $1, %rdi # stdout | ||
leaq _goodbye_world(%rip), %rsi | ||
mov $15, %rdx # length | ||
syscall | ||
mov $0, %rax | ||
ret |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.