unofficial mirror of guile-devel@gnu.org 
 help / color / mirror / Atom feed
* wip-linker: Refactor ELF linker and loader
@ 2013-05-18 15:05 Andy Wingo
  2013-05-18 15:05 ` [PATCH 1/6] split linker out of elf module Andy Wingo
                   ` (6 more replies)
  0 siblings, 7 replies; 24+ messages in thread
From: Andy Wingo @ 2013-05-18 15:05 UTC (permalink / raw)
  To: guile-devel

Hi,

This patch series is the first from wip-rtl that I'm going to try to
merge to master.  You can look at it in gitk or whatever if you prefer;
I've pushed it as wip-linker.  Note that compared to wip-rtl, this is
a more cleaned-up patchset.

The summary is that I split the linker out of the ELF module, then
adapt the linker to create files that can be mapped directly into
memory.  Then we change the loader to expect this kind of file, and
provide a way to look up the ELF image associated with a given
procedure.  This will later allow us to get debugging information for a
procedure.

Note that all of this code applies to the existing .go files, since in
master, .go files are actually ELF.  I've also added a small test for
sanity's sake.

That said though, this is all just refactoring -- the RTL patches (to
come later) are what really benefit by having a good linker and loader.

This is the first time I've tried git-send-email, so perhaps something
goes wrong.  In any case, the intention is to allow folks to comment
easily on the code; we'll see how that goes.

Comments welcome!  I'd especially like to hear impressions from Ludo and
Mark.

Cheers,

Andy




^ permalink raw reply	[flat|nested] 24+ messages in thread

end of thread, other threads:[~2013-05-24 15:37 UTC | newest]

Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-18 15:05 wip-linker: Refactor ELF linker and loader Andy Wingo
2013-05-18 15:05 ` [PATCH 1/6] split linker out of elf module Andy Wingo
2013-05-22 20:39   ` Ludovic Courtès
2013-05-23  7:26     ` Andy Wingo
2013-05-18 15:05 ` [PATCH 2/6] ELF refactor and consequent linker simplifications Andy Wingo
2013-05-22 20:44   ` Ludovic Courtès
2013-05-23  8:47     ` Andy Wingo
2013-05-23 10:27       ` Ludovic Courtès
2013-05-18 15:05 ` [PATCH 3/6] elf: add accessors for header members that might need relocation Andy Wingo
2013-05-22 20:45   ` Ludovic Courtès
2013-05-18 15:05 ` [PATCH 4/6] refactor linker to lay out ELF files and memory in the same way Andy Wingo
2013-05-22 20:56   ` Ludovic Courtès
2013-05-23 10:46     ` Andy Wingo
2013-05-23 11:59       ` Ludovic Courtès
2013-05-18 15:05 ` [PATCH 5/6] refactor and simplify ELF loader in objcodes.c Andy Wingo
2013-05-22 21:06   ` Ludovic Courtès
2013-05-23 10:58     ` Andy Wingo
2013-05-23 20:35       ` Ludovic Courtès
2013-05-24 14:49         ` Andy Wingo
2013-05-24 15:37           ` Ludovic Courtès
2013-05-18 15:05 ` [PATCH 6/6] add (find-mapped-elf-image) procedure to (system vm objcode) module Andy Wingo
2013-05-22 21:09   ` Ludovic Courtès
2013-05-22 21:13 ` wip-linker: Refactor ELF linker and loader Ludovic Courtès
2013-05-23  7:22   ` Andy Wingo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).