diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2024-11-13 21:53:08 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2024-11-13 21:53:08 +0100 |
commit | 8c99b5df10b644de003b6e26e270272504200df9 (patch) | |
tree | 9b1e4cd252cfe16f5671f92de8097ebd23f0e566 /bxgen.c | |
parent | 0a3c09e86ce5fe545e31e817a41f800c1755f0fc (diff) | |
download | bxgen-8c99b5df10b644de003b6e26e270272504200df9.zip |
Update comments, aligning
Diffstat (limited to 'bxgen.c')
-rwxr-xr-x | bxgen.c | 20 |
1 files changed, 11 insertions, 9 deletions
@@ -194,15 +194,15 @@ enum { STRING_TABLE_ALIGNMENT = 16, // TODO // TEMP - MAX_NUM_OBJECT_FILES = 10 * 1024, - MAX_NUM_SECTIONS = 2 * 1024 * 1024, - MAX_NUM_SYMBOLS = 2 * 1024 * 1024, - MAX_NUM_RELS = 100 * 1024, - MAX_NUM_LINK_RELS = 2 * 1024 * 1024, - MAX_OBJECT_FILE_SIZE = 10 * 1024 * 1024, // 10 MB - MAX_DEPENDENCIES_SIZE = 50 * 1024 * 1024, // 50 MB - MAX_CODE_SIZE = 100 * 1024, // 100 KB - MAX_OUTPUT_SIZE = 20 * 1024 * 1024, // 20 MB + MAX_NUM_OBJECT_FILES = 10 * 1024, + MAX_NUM_SECTIONS = 2 * 1024 * 1024, + MAX_NUM_SYMBOLS = 2 * 1024 * 1024, + MAX_NUM_RELS = 100 * 1024, + MAX_NUM_LINK_RELS = 2 * 1024 * 1024, + MAX_OBJECT_FILE_SIZE = 10 * 1024 * 1024, // 10 MB + MAX_DEPENDENCIES_SIZE = 50 * 1024 * 1024, // 50 MB + MAX_CODE_SIZE = 100 * 1024, // 100 KB + MAX_OUTPUT_SIZE = 20 * 1024 * 1024, // 20 MB MAX_PATH_SIZE = 10 * 1024, MAX_LITERAL_SIZE = 400, @@ -1489,6 +1489,8 @@ void write_f64(u32 ordering, f64 x, void *v, void *v_end) { // AR https://man.freebsd.org/cgi/man.cgi?query=ar&sektion=5 // ELF https://man7.org/linux/man-pages/man5/elf.5.html // +// https://fasterthanli.me/series/making-our-own-executable-packer +// // Relocation types // https://intezer.com/blog/malware-analysis/executable-and-linkable-format-101-part-3-relocations/ // https://docs.oracle.com/cd/E19120-01/open.solaris/819-0690/chapter7-2/index.html |