/* SPDX-License-Identifier: GPL-2.0 */1/*2initramfs_data includes the compressed binary that is the3filesystem used for early user space.4Note: Older versions of "as" (prior to binutils 2.11.90.0.235released on 2001-07-14) dit not support .incbin.6If you are forced to use older binutils than that then the7following trick can be applied to create the resulting binary:8910ld -m elf_i386 --format binary --oformat elf32-i386 -r \11-T initramfs_data.scr initramfs_data.cpio.gz -o initramfs_data.o12ld -m elf_i386 -r -o built-in.a initramfs_data.o1314For including the .init.ramfs sections, see include/asm-generic/vmlinux.lds.1516The above example is for i386 - the parameters vary from architectures.17Eventually look up LDFLAGS_BLOB in an older version of the18arch/$(ARCH)/Makefile to see the flags used before .incbin was introduced.1920Using .incbin has the advantage over ld that the correct flags are set21in the ELF header, as required by certain architectures.22*/2324.section .init.ramfs,"a"25__irf_start:26.incbin "usr/initramfs_inc_data"27__irf_end:28.section .init.ramfs.info,"a"29.globl __initramfs_size30__initramfs_size:31#ifdef CONFIG_64BIT32.quad __irf_end - __irf_start33#else34.long __irf_end - __irf_start35#endif363738