-
Notifications
You must be signed in to change notification settings - Fork 620
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 #3631 from masatake/ldscript--revise-VERSION-parsing
Ldscript: improve tagging versions in VERSION commands
- Loading branch information
Showing
7 changed files
with
79 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
--sort=no |
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,4 @@ | ||
jiffies input.lds /^jiffies = jiffies_64;$/;" s | ||
verd85df1730102 input.lds /^ {$/;" v | ||
__executable_start input.lds /^ PROVIDE (__executable_start = START);$/;" s assignment:provide | ||
__binary_start input.lds /^ __binary_start = START;$/;" s |
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,28 @@ | ||
/* Taken from linux/arch/um/kernel/uml.lds.S */ | ||
/* SPDX-License-Identifier: GPL-2.0 */ | ||
#include <asm/vmlinux.lds.h> | ||
#include <asm/page.h> | ||
|
||
OUTPUT_FORMAT(ELF_FORMAT) | ||
OUTPUT_ARCH(ELF_ARCH) | ||
ENTRY(_start) | ||
jiffies = jiffies_64; | ||
|
||
VERSION { | ||
{ | ||
local: *; | ||
}; | ||
} | ||
|
||
SECTIONS | ||
{ | ||
/* This must contain the right address - not quite the default ELF one.*/ | ||
PROVIDE (__executable_start = START); | ||
/* Static binaries stick stuff here, like the sigreturn trampoline, | ||
* invisibly to objdump. So, just make __binary_start equal to the very | ||
* beginning of the executable, and if there are unmapped pages after this, | ||
* they are forever unusable. | ||
*/ | ||
__binary_start = START; | ||
/* ... */ | ||
} |
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 @@ | ||
--sort=no |
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,3 @@ | ||
VERS_1.1 input.lds /^ VERS_1.1 {$/;" v | ||
VERS_1.2 input.lds /^ VERS_1.2 {$/;" v | ||
VERS_2.0 input.lds /^ VERS_2.0 {$/;" v |
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,23 @@ | ||
/* Taken from info manual of ld */ | ||
VERSION { | ||
VERS_1.1 { | ||
global: | ||
foo1; | ||
local: | ||
old*; | ||
original*; | ||
new*; | ||
}; | ||
|
||
VERS_1.2 { | ||
foo2; | ||
} VERS_1.1; | ||
|
||
VERS_2.0 { | ||
bar1; bar2; | ||
extern "C++" { | ||
ns::*; | ||
"f(int, double)"; | ||
}; | ||
} VERS_1.2; | ||
} |
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