Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shayne Fletcher
Glasgow Haskell Compiler
Commits
44315e13
Commit
44315e13
authored
Apr 20, 2011
by
CJ van den Berg
Committed by
Ian Lynagh
Apr 20, 2011
Browse files
For very short linker scripts dlopen may return 'file too short' instead
of 'invalid ELF header'.
parent
a8c51c33
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Linker.c
View file @
44315e13
...
...
@@ -1186,7 +1186,7 @@ initLinker( void )
# endif
/* RTLD_DEFAULT */
compileResult
=
regcomp
(
&
re_invalid
,
"(([^
\t
()])+
\\
.so([^
\t
:()])*):([
\t
])*invalid ELF header"
,
"(([^
\t
()])+
\\
.so([^
\t
:()])*):([
\t
])*
(
invalid ELF header
|file too short)
"
,
REG_EXTENDED
);
ASSERT
(
compileResult
==
0
);
compileResult
=
regcomp
(
&
re_realso
,
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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