In the upcoming multi image build process we will cat images together. To find the concatenated image we need to reliably find the end of the current binary. This adds a dummy section at the end of a pbl binary. Its only purpose is to mark the end of the image. The multi image patches will add something to this section so that it doesn't get discarded by the linker. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
19 lines
614 B
C
19 lines
614 B
C
#ifndef _ASM_GENERIC_SECTIONS_H_
|
|
#define _ASM_GENERIC_SECTIONS_H_
|
|
|
|
extern char _text[], _stext[], _etext[];
|
|
extern char __bss_start[], __bss_stop[];
|
|
extern char _sdata[], _edata[];
|
|
extern char __bare_init_start[], __bare_init_end[];
|
|
extern char _end[];
|
|
extern char __image_end[];
|
|
extern void *_barebox_image_size;
|
|
extern void *_barebox_bare_init_size;
|
|
extern void *_barebox_pbl_size;
|
|
|
|
#define barebox_image_size (unsigned int)&_barebox_image_size
|
|
#define barebox_bare_init_size (unsigned int)&_barebox_bare_init_size
|
|
#define barebox_pbl_size (unsigned int)&_barebox_pbl_size
|
|
|
|
#endif /* _ASM_GENERIC_SECTIONS_H_ */
|