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/ex4 | |
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/ex4')
-rwxr-xr-x | subx/ex4 | bin | 113 -> 171 bytes |
1 files changed, 0 insertions, 0 deletions
diff --git a/subx/ex4 b/subx/ex4
index 21f7118b..15529a9f 100755
--- a/subx/ex4
+++ b/subx/ex4
Binary files differ |