projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f156ffc
)
x86, realmode: Allow absolute pa_* symbols in the realmode code
author
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 8 May 2012 18:22:31 +0000
(21:22 +0300)
committer
H. Peter Anvin
<hpa@linux.intel.com>
Tue, 8 May 2012 18:47:11 +0000
(11:47 -0700)
Allow pa_* symbols to be absolute (outside any section) in the
realmode linker script. Some versions of GNU ld are known to be
unhappy about symbols defined in a section that is otherwise empty.
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link:
http://lkml.kernel.org/r/1336501366-28617-9-git-send-email-jarkko.sakkinen@intel.com
scripts/x86-relocs.c
patch
|
blob
|
history
diff --git
a/scripts/x86-relocs.c
b/scripts/x86-relocs.c
index 02914706e5b98dd715cd36b8dc306f4ae9880dfb..74e16bb15dc4b85deeef7038c74ac7c3d9e50ba2 100644
(file)
--- a/
scripts/x86-relocs.c
+++ b/
scripts/x86-relocs.c
@@
-61,6
+61,13
@@
static const char * const sym_regex_kernel[S_NSYMTYPES] = {
static const char * const sym_regex_realmode[S_NSYMTYPES] = {
+/*
+ * These symbols are known to be relative, even if the linker marks them
+ * as absolute (typically defined outside any section in the linker script.)
+ */
+ [S_REL] =
+ "^pa_",
+
/*
* These are 16-bit segment symbols when compiling 16-bit code.
*/