about summary refs log tree commit diff stats
path: root/subx/ex1
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-16 11:03:08 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-16 11:05:19 -0700
commit0c57224ccff9727fb699994a4c3d5f5c6d6d1881 (patch)
tree50608e44d326f83b12381b41bf0ebdb66f8563f8 /subx/ex1
parent66050b796e436735c74504b90f915dd6bc66b8b0 (diff)
downloadmu-0c57224ccff9727fb699994a4c3d5f5c6d6d1881.tar.gz
4356 - subx: first program with a data segment
We read() a character from stdin and write() it out to stdout, saving it
to a global variable in between.

ELF binaries are inefficient; you can ask for a low alignment, but the
kernel may not be able to handle it. If you set up a high alignment then
you end up wasting an increasing amount of space in each segment
because of the constraint that the offset bear some relationship with
the loaded address.
Diffstat (limited to 'subx/ex1')
-rwxr-xr-xsubx/ex1bin96 -> 96 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/subx/ex1 b/subx/ex1
index c4114dfd..f3c9730d 100755
--- a/subx/ex1
+++ b/subx/ex1
Binary files differ