diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-16 11:03:08 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-16 11:05:19 -0700 |
commit | 0c57224ccff9727fb699994a4c3d5f5c6d6d1881 (patch) | |
tree | 50608e44d326f83b12381b41bf0ebdb66f8563f8 /subx/ex1 | |
parent | 66050b796e436735c74504b90f915dd6bc66b8b0 (diff) | |
download | mu-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-x | subx/ex1 | bin | 96 -> 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 |