aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrahflow <drahflow@gmx.de>2013-12-18 23:37:00 +0100
committerDrahflow <drahflow@gmx.de>2013-12-18 23:37:00 +0100
commitf6bfd92621164e326a0dd7681d6104517f950ce4 (patch)
tree6513e85fb706fe868dafc7082568c832d77d7a77
parentc8403d1aac986c4a9b24fa23afc9bb7127cfbb9e (diff)
Fixed section addresses (and gdb warnings)
-rw-r--r--compiler/standardClient.ey3
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/standardClient.ey b/compiler/standardClient.ey
index 40f7ebd..75a2d44 100644
--- a/compiler/standardClient.ey
+++ b/compiler/standardClient.ey
@@ -823,6 +823,7 @@
{ 0 dumpIndented }
> -- /dump deffd
+# TODO: why do we save section information, exactly?
{ ==filename # ==f (left on the stack a while and executed from sys .asm .programStart)
sys .asm .patchProgramStart ==frozenAllocationCount
@@ -879,7 +880,7 @@
0 ==?dataOffset { =dataOffset } /setDataOffset deff
1 ==?type # program data
7 ==?flags # writable, allocated, executable
- 0 ==?addr # FIXME
+ i sys .asm .globalAllocBase ==?addr # address where this section will be loaded
0 ==?link # no associated section
0 ==?entsize # no entries
i sys .asm .globalAllocBase ==?dataBase