diff options
Diffstat (limited to 'usr/initramfs.S')
| -rw-r--r-- | usr/initramfs.S | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/usr/initramfs.S b/usr/initramfs.S new file mode 100644 index 0000000..fa21553 --- /dev/null +++ b/usr/initramfs.S @@ -0,0 +1,17 @@ +/* SPDX-License-Identifier: GPL-2.0-or-later */ + +/* + * Embed the generated CPIO through the target assembler instead of converting + * it with `objcopy -I binary`. The resulting object inherits the target ABI + * attributes (notably RISC-V float ABI flags), which keeps both GNU ld and LLD + * strict-linking compatible. + */ + +#ifndef INITRAMFS_IMAGE +#error "INITRAMFS_IMAGE must name the generated CPIO archive" +#endif + + .section .init.ramfs, "a", @progbits + .balign 8 + .incbin INITRAMFS_IMAGE + |
