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
nexedi
linux
Commits
70e1e33a
Commit
70e1e33a
authored
Mar 25, 2003
by
David Mosberger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ia64: Fix module loader by setting sh_type of place-holder sesctions to SHT_NOBITS.
parent
a327a46e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
arch/ia64/kernel/module.c
arch/ia64/kernel/module.c
+5
-1
No files found.
arch/ia64/kernel/module.c
View file @
70e1e33a
...
...
@@ -499,15 +499,19 @@ module_frob_arch_sections (Elf_Ehdr *ehdr, Elf_Shdr *sechdrs, char *secstrings,
core_plts
+=
count_plts
(
rels
,
numrels
);
}
mod
->
arch
.
core_plt
->
sh_type
=
SHT_NOBITS
;
mod
->
arch
.
core_plt
->
sh_flags
=
SHF_EXECINSTR
|
SHF_ALLOC
;
mod
->
arch
.
core_plt
->
sh_addralign
=
16
;
mod
->
arch
.
core_plt
->
sh_size
=
core_plts
*
sizeof
(
struct
plt_entry
);
mod
->
arch
.
init_plt
->
sh_type
=
SHT_NOBITS
;
mod
->
arch
.
init_plt
->
sh_flags
=
SHF_EXECINSTR
|
SHF_ALLOC
;
mod
->
arch
.
init_plt
->
sh_addralign
=
16
;
mod
->
arch
.
init_plt
->
sh_size
=
init_plts
*
sizeof
(
struct
plt_entry
);
mod
->
arch
.
got
->
sh_type
=
SHT_NOBITS
;
mod
->
arch
.
got
->
sh_flags
=
ARCH_SHF_SMALL
|
SHF_ALLOC
;
mod
->
arch
.
got
->
sh_addralign
=
8
;
mod
->
arch
.
got
->
sh_size
=
gots
*
sizeof
(
struct
got_entry
);
mod
->
arch
.
opd
->
sh_type
=
SHT_NOBITS
;
mod
->
arch
.
opd
->
sh_flags
=
SHF_ALLOC
;
mod
->
arch
.
opd
->
sh_addralign
=
8
;
mod
->
arch
.
opd
->
sh_size
=
fdescs
*
sizeof
(
struct
fdesc
);
...
...
@@ -856,7 +860,7 @@ int
apply_relocate
(
Elf64_Shdr
*
sechdrs
,
const
char
*
strtab
,
unsigned
int
symindex
,
unsigned
int
relsec
,
struct
module
*
mod
)
{
printk
(
KERN_ERR
"module %s: REL relocs
unsupported
\n
"
,
mod
->
name
);
printk
(
KERN_ERR
"module %s: REL relocs
in section %u unsupported
\n
"
,
relsec
,
mod
->
name
);
return
-
ENOEXEC
;
}
...
...
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