Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
jberryman
GHC
Commits
82460c32
Commit
82460c32
authored
Oct 28, 2005
by
simonmar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[project @ 2005-10-28 08:10:09 by simonmar]
Fix recent breakage on non-Windows systems
parent
677c6345
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
ghc/rts/Linker.c
ghc/rts/Linker.c
+7
-6
No files found.
ghc/rts/Linker.c
View file @
82460c32
...
...
@@ -142,6 +142,7 @@ typedef struct _RtsSymbolVal {
#if !defined (mingw32_HOST_OS)
#define RTS_POSIX_ONLY_SYMBOLS \
SymX(signal_handlers) \
SymX(stg_sig_install) \
Sym(nocldstop)
#endif
...
...
@@ -2740,7 +2741,7 @@ ocVerifyImage_ELF ( ObjectCode* oc )
IF_DEBUG
(
linker
,
debugBelch
(
"
\n
Section header table: start %ld, n_entries %d, ent_size %d
\n
"
,
ehdr
->
e_shoff
,
ehdr
->
e_shnum
,
ehdr
->
e_shentsize
));
(
long
)
ehdr
->
e_shoff
,
ehdr
->
e_shnum
,
ehdr
->
e_shentsize
));
ASSERT
(
ehdr
->
e_shentsize
==
sizeof
(
Elf_Shdr
));
...
...
@@ -2807,7 +2808,7 @@ ocVerifyImage_ELF ( ObjectCode* oc )
nent
=
shdr
[
i
].
sh_size
/
sizeof
(
Elf_Sym
);
IF_DEBUG
(
linker
,
debugBelch
(
" number of entries is apparently %d (%ld rem)
\n
"
,
nent
,
shdr
[
i
].
sh_size
%
sizeof
(
Elf_Sym
)
(
long
)
shdr
[
i
].
sh_size
%
sizeof
(
Elf_Sym
)
));
if
(
0
!=
shdr
[
i
].
sh_size
%
sizeof
(
Elf_Sym
))
{
errorBelch
(
"%s: non-integral number of symbol table entries"
,
oc
->
fileName
);
...
...
@@ -3116,8 +3117,8 @@ do_Elf_Rel_relocations ( ObjectCode* oc, char* ehdrC,
case
R_386_PC32
:
*
pP
=
value
-
P
;
break
;
# endif
default:
errorBelch
(
"%s: unhandled ELF relocation(Rel) type %l
d
\n
"
,
oc
->
fileName
,
ELF_R_TYPE
(
info
));
errorBelch
(
"%s: unhandled ELF relocation(Rel) type %l
u
\n
"
,
oc
->
fileName
,
(
lnat
)
ELF_R_TYPE
(
info
));
return
0
;
}
...
...
@@ -3357,8 +3358,8 @@ do_Elf_Rela_relocations ( ObjectCode* oc, char* ehdrC,
#endif
default:
errorBelch
(
"%s: unhandled ELF relocation(RelA) type %l
d
\n
"
,
oc
->
fileName
,
ELF_R_TYPE
(
info
));
errorBelch
(
"%s: unhandled ELF relocation(RelA) type %l
u
\n
"
,
oc
->
fileName
,
(
lnat
)
ELF_R_TYPE
(
info
));
return
0
;
}
...
...
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