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
d247da0a
Commit
d247da0a
authored
Mar 18, 2014
by
Rusty Russell
Committed by
Anton Blanchard
Apr 23, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
powerpc: modules implement R_PPC64_TOCSAVE relocation.
Signed-off-by:
Rusty Russell
<
rusty@rustcorp.com.au
>
parent
0e60e46e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
1 deletion
+12
-1
arch/powerpc/include/uapi/asm/elf.h
arch/powerpc/include/uapi/asm/elf.h
+4
-1
arch/powerpc/kernel/module_64.c
arch/powerpc/kernel/module_64.c
+8
-0
No files found.
arch/powerpc/include/uapi/asm/elf.h
View file @
d247da0a
...
@@ -291,9 +291,12 @@ do { \
...
@@ -291,9 +291,12 @@ do { \
#define R_PPC64_DTPREL16_HIGHERA 104
/* half16 (sym+add)@dtprel@highera */
#define R_PPC64_DTPREL16_HIGHERA 104
/* half16 (sym+add)@dtprel@highera */
#define R_PPC64_DTPREL16_HIGHEST 105
/* half16 (sym+add)@dtprel@highest */
#define R_PPC64_DTPREL16_HIGHEST 105
/* half16 (sym+add)@dtprel@highest */
#define R_PPC64_DTPREL16_HIGHESTA 106
/* half16 (sym+add)@dtprel@highesta */
#define R_PPC64_DTPREL16_HIGHESTA 106
/* half16 (sym+add)@dtprel@highesta */
#define R_PPC64_TLSGD 107
#define R_PPC64_TLSLD 108
#define R_PPC64_TOCSAVE 109
/* Keep this the last entry. */
/* Keep this the last entry. */
#define R_PPC64_NUM 1
07
#define R_PPC64_NUM 1
10
/* There's actually a third entry here, but it's unused */
/* There's actually a third entry here, but it's unused */
struct
ppc64_opd_entry
struct
ppc64_opd_entry
...
...
arch/powerpc/kernel/module_64.c
View file @
d247da0a
...
@@ -454,6 +454,14 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
...
@@ -454,6 +454,14 @@ int apply_relocate_add(Elf64_Shdr *sechdrs,
*
location
=
value
-
(
unsigned
long
)
location
;
*
location
=
value
-
(
unsigned
long
)
location
;
break
;
break
;
case
R_PPC64_TOCSAVE
:
/*
* Marker reloc indicates we don't have to save r2.
* That would only save us one instruction, so ignore
* it.
*/
break
;
default:
default:
printk
(
"%s: Unknown ADD relocation: %lu
\n
"
,
printk
(
"%s: Unknown ADD relocation: %lu
\n
"
,
me
->
name
,
me
->
name
,
...
...
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