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/020elf.cc | |
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/020elf.cc')
0 files changed, 0 insertions, 0 deletions