forked from llvm/llvm-project
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #256 from Xilinx/bump_to_2e271ceff668
Bump with conflict resolution to 2e271ce (1)
- Loading branch information
Showing
1,040 changed files
with
27,651 additions
and
10,844 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,41 @@ | ||
# REQUIRES: system-linux | ||
|
||
# RUN: llvm-mc -filetype=obj -triple x86_64-unknown-unknown %s -o %t.o | ||
# RUN: %clang %cflags -nostdlib %t.o -o %t.exe \ | ||
# RUN: -Wl,--image-base=0xffffffff80000000,--no-dynamic-linker,--no-eh-frame-hdr,--no-pie | ||
# RUN: llvm-bolt %t.exe --print-normalized -o %t.out |& FileCheck %s | ||
|
||
## Check that BOLT correctly parses the Linux kernel .pci_fixup section and | ||
## verify that PCI fixup hook in the middle of a function is detected. | ||
|
||
# CHECK: BOLT-INFO: Linux kernel binary detected | ||
# CHECK: BOLT-WARNING: PCI fixup detected in the middle of function _start | ||
# CHECK: BOLT-INFO: parsed 2 PCI fixup entries | ||
|
||
.text | ||
.globl _start | ||
.type _start, %function | ||
_start: | ||
nop | ||
.L0: | ||
ret | ||
.size _start, .-_start | ||
|
||
## PCI fixup table. | ||
.section .pci_fixup,"a",@progbits | ||
|
||
.short 0x8086 # vendor | ||
.short 0xbeef # device | ||
.long 0xffffffff # class | ||
.long 0x0 # class shift | ||
.long _start - . # fixup | ||
|
||
.short 0x8086 # vendor | ||
.short 0xbad # device | ||
.long 0xffffffff # class | ||
.long 0x0 # class shift | ||
.long .L0 - . # fixup | ||
|
||
## Fake Linux Kernel sections. | ||
.section __ksymtab,"a",@progbits | ||
.section __ksymtab_gpl,"a",@progbits |
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
Oops, something went wrong.