mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-01-31 03:27:39 +00:00
8ff48201ca
This change takes an entirely new approach to the incremental linking of pkzip executables. The assets created by zipobj.com are now treated like debug data. After a .com.dbg is compiled, fixupobj.com should be run, so it can apply fixups to the offsets and move the zip directory to the end of the file. Since debug data doesn't get objcopy'd, a new tool has been introduced called zipcopy.com which should be run after objcopy whenever a .com file is created. This is all automated by the `cosmocc` toolchain which is rapidly becoming the new recommended approach. This change also introduces the new C23 checked arithmetic macros.
29 lines
1.4 KiB
C
29 lines
1.4 KiB
C
#ifndef COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
|
#define COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
|
COSMOPOLITAN_C_START_
|
|
|
|
extern const char __comment_start[] __attribute__((__weak__));
|
|
extern unsigned char __executable_start[] __attribute__((__weak__));
|
|
extern unsigned char __privileged_start[] __attribute__((__weak__));
|
|
extern unsigned char _ehead[] __attribute__((__weak__));
|
|
extern unsigned char _etext[] __attribute__((__weak__));
|
|
extern unsigned char _edata[] __attribute__((__weak__));
|
|
extern unsigned char _ezip[] __attribute__((__weak__));
|
|
extern unsigned char _end[] __attribute__((__weak__));
|
|
extern unsigned char _ereal[] __attribute__((__weak__));
|
|
extern unsigned char _tdata_start[] __attribute__((__weak__));
|
|
extern unsigned char _tdata_end[] __attribute__((__weak__));
|
|
extern unsigned char _tbss_start[] __attribute__((__weak__));
|
|
extern unsigned char _tbss_end[] __attribute__((__weak__));
|
|
extern unsigned char _tls_align[] __attribute__((__weak__));
|
|
extern unsigned char __test_start[] __attribute__((__weak__));
|
|
extern unsigned char __ro[] __attribute__((__weak__));
|
|
extern uint8_t __data_start[] __attribute__((__weak__));
|
|
extern uint8_t __data_end[] __attribute__((__weak__));
|
|
extern uint8_t __bss_start[] __attribute__((__weak__));
|
|
extern uint8_t __bss_end[] __attribute__((__weak__));
|
|
|
|
COSMOPOLITAN_C_END_
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
#endif /* COSMOPOLITAN_APE_SECTIONS_INTERNAL_H_ */
|