Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,321
Issues
4,321
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
359
Merge Requests
359
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
63777579
Commit
63777579
authored
Jun 29, 2016
by
Simon Marlow
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Linker: some extra debugging / logging
parent
ee8d1fac
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
rts/Linker.c
rts/Linker.c
+25
-0
No files found.
rts/Linker.c
View file @
63777579
...
...
@@ -1465,6 +1465,27 @@ void ghci_enquire(SymbolAddr* addr)
}
}
}
void
ghci_find
(
SymbolAddr
*
addr
);
void
ghci_find
(
SymbolAddr
*
addr
)
{
ObjectCode
*
oc
;
uint32_t
i
;
for
(
oc
=
objects
;
oc
!=
NULL
;
oc
=
oc
->
next
)
{
for
(
i
=
0
;
i
<
(
uint32_t
)
oc
->
n_sections
;
i
++
)
{
Section
*
section
=
&
oc
->
sections
[
i
];
if
(
addr
>
section
->
start
&&
(
StgWord
)
addr
<
(
StgWord
)
section
->
start
+
section
->
size
)
{
debugBelch
(
"%p is in %"
PATH_FMT
,
addr
,
oc
->
archiveMemberName
?
oc
->
archiveMemberName
:
oc
->
fileName
);
debugBelch
(
", section %d, offset %lx
\n
"
,
i
,
(
StgWord
)
addr
-
(
StgWord
)
section
->
start
);
}
}
}
}
#endif
#if RTS_LINKER_USE_MMAP
...
...
@@ -2537,6 +2558,10 @@ int ocTryLoad (ObjectCode* oc) {
}
}
IF_DEBUG
(
linker
,
debugBelch
(
"Resolving %"
PATH_FMT
"
\n
"
,
oc
->
archiveMemberName
?
oc
->
archiveMemberName
:
oc
->
fileName
));
# if defined(OBJFORMAT_ELF)
r
=
ocResolve_ELF
(
oc
);
# elif defined(OBJFORMAT_PEi386)
...
...
Simon Marlow
@simonmar
mentioned in commit
890ec98c
·
Jul 05, 2016
mentioned in commit
890ec98c
mentioned in commit 890ec98cdf144ed7e1efd53c528187deee27b783
Toggle commit list
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