-
Notifications
You must be signed in to change notification settings - Fork 12.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gold linker manual describes them as: -z text Do not permit relocations in read-only segments -z notext Permit relocations in read-only segments (default) In LLD default is to not permit them. Patch implements -z notext. Differential revision: https://reviews.llvm.org/D30530 llvm-svn: 297366
- Loading branch information
George Rimar
committed
Mar 9, 2017
1 parent
1c74c2f
commit 0a7412f
Showing
5 changed files
with
25 additions
and
5 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
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,15 @@ | ||
# REQUIRES: x86 | ||
# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o | ||
# RUN: ld.lld -z notext %t.o -o %t -shared | ||
# RUN: llvm-readobj -dynamic-table -r %t | FileCheck %s | ||
|
||
# CHECK: Relocations [ | ||
# CHECK-NEXT: Section {{.*}} .rela.dyn { | ||
# CHECK-NEXT: 0x1000 R_X86_64_RELATIVE - 0x1000 | ||
# CHECK-NEXT: } | ||
# CHECK-NEXT: ] | ||
# CHECK: DynamicSection [ | ||
# CHECK: 0x0000000000000016 TEXTREL 0x0 | ||
|
||
foo: | ||
.quad foo |