Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
7e32b2a9
Commit
7e32b2a9
authored
Sep 05, 2013
by
Edward Z. Yang
Browse files
Windows: load eh_frame as rodata, fixes
#8237
Signed-off-by:
Edward Z. Yang
<
ezyang@mit.edu
>
parent
352a2bf8
Changes
1
Hide whitespace changes
Inline
Side-by-side
rts/Linker.c
View file @
7e32b2a9
...
...
@@ -3798,6 +3798,11 @@ ocGetNames_PEi386 ( ObjectCode* oc )
/* I'm sure this is the Right Way to do it. However, the
alternative of testing the sectab_i->Name field seems to
work ok with Cygwin.
EZY: We should strongly consider using this style, because
it lets us pick up sections that should be added (e.g.
for a while the linker did not work due to missing .eh_frame
in this section.)
*/
if
(
sectab_i
->
Characteristics
&
MYIMAGE_SCN_CNT_CODE
||
sectab_i
->
Characteristics
&
MYIMAGE_SCN_CNT_INITIALIZED_DATA
)
...
...
@@ -3807,6 +3812,7 @@ ocGetNames_PEi386 ( ObjectCode* oc )
if
(
0
==
strcmp
(
".text"
,(
char
*
)
secname
)
||
0
==
strcmp
(
".text.startup"
,(
char
*
)
secname
)
||
0
==
strcmp
(
".rdata"
,(
char
*
)
secname
)
||
0
==
strcmp
(
".eh_frame"
,
(
char
*
)
secname
)
||
0
==
strcmp
(
".rodata"
,(
char
*
)
secname
))
kind
=
SECTIONKIND_CODE_OR_RODATA
;
if
(
0
==
strcmp
(
".data"
,(
char
*
)
secname
)
||
...
...
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