Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
54f05dc4
Commit
54f05dc4
authored
Apr 02, 2003
by
David S. Miller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SPARC64]: Support OLO10 relocations for modules.
parent
afa82d46
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
arch/sparc64/kernel/module.c
arch/sparc64/kernel/module.c
+6
-0
include/linux/elf.h
include/linux/elf.h
+5
-0
No files found.
arch/sparc64/kernel/module.c
View file @
54f05dc4
...
@@ -231,6 +231,12 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
...
@@ -231,6 +231,12 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
((
v
>>
10
)
&
0x3fffff
);
((
v
>>
10
)
&
0x3fffff
);
break
;
break
;
case
R_SPARC_OLO10
:
*
loc32
=
(
*
loc32
&
~
0x1fff
)
|
(((
v
&
0x3ff
)
+
(
ELF64_R_TYPE
(
rel
[
i
].
r_info
)
>>
8
))
&
0x1fff
);
default:
default:
printk
(
KERN_ERR
"module %s: Unknown relocation: %x
\n
"
,
printk
(
KERN_ERR
"module %s: Unknown relocation: %x
\n
"
,
me
->
name
,
me
->
name
,
...
...
include/linux/elf.h
View file @
54f05dc4
...
@@ -274,6 +274,10 @@ typedef struct {
...
@@ -274,6 +274,10 @@ typedef struct {
#define R_MIPS_LOVENDOR 100
#define R_MIPS_LOVENDOR 100
#define R_MIPS_HIVENDOR 127
#define R_MIPS_HIVENDOR 127
/*
* Sparc section types
*/
#define STT_REGISTER 13
/*
/*
* Sparc ELF relocation types
* Sparc ELF relocation types
...
@@ -311,6 +315,7 @@ typedef struct {
...
@@ -311,6 +315,7 @@ typedef struct {
#define R_SPARC_10 30
#define R_SPARC_10 30
#define R_SPARC_11 31
#define R_SPARC_11 31
#define R_SPARC_64 32
#define R_SPARC_64 32
#define R_SPARC_OLO10 33
#define R_SPARC_WDISP16 40
#define R_SPARC_WDISP16 40
#define R_SPARC_WDISP19 41
#define R_SPARC_WDISP19 41
#define R_SPARC_7 43
#define R_SPARC_7 43
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment