search for: incbin

Displaying 20 results from an estimated 56 matches for "incbin".

2016 Jun 01
1
GDB pretty printers for LLVM ADTs
...ource tree. But if we use the inline script version - the right version is embedded in the binary & available every time. This gets a bit ugly - writing Python inside inline asm isn't really comfortable (even with C++ raw string literals to get past one level of escaping), but we could use incbin assembler directive to include a Python source file straight into the inline asm in the right place. Only problem: Clang's incbin support is buggy <http://llvm.org/PR24811> in a way that makes this not work (disabling the integrated assembler does demonstrate this working successfully)....
2017 Jun 06
3
llvm-objcopy proposal
...Wl,<<something to >> undo binary mode?>> >> >> So, anyways, while this is _possible_ with objcopy, it'd sure be nice if >> you never needed to use it for that... >> > > The other approaches I've seen or can imagine are: > > - Assembler `.incbin` directive (could use it from an inline asm). > - Use a "bin2h" type program which takes a binary and spits out a C file > with a giant uint8_t[] literal in it, then include that in one of your > normal .c files. In theory a C++11 raw string literal could bypass most of > the...
2017 Jun 02
2
llvm-objcopy proposal
On Fri, Jun 2, 2017 at 2:34 PM, Ed Maste via llvm-dev < llvm-dev at lists.llvm.org> wrote: > One additional use case for you: converting from a binary to an ELF object > file > ``` > objcopy -I binary -O elf64-x86-64 foo.bin foo.o > ``` > This is sometimes used for embedding binary files for use by drivers and > such. > Yea, unfortunately the command-line you
2006 Apr 09
0
[PATCH] kbuild: fix usr/Kbuild to use new usr/gen_initramfs.sh
...a/usr/Kbuild +++ b/usr/Kbuild @@ -26,67 +26,37 @@ subdir- := klibc kinit utils dash gzip # Generate builtin.o based on initramfs_data.o -obj-y := initramfs_data.o +obj-y := initramfs_data.o # initramfs_data.o contains the initramfs_data.cpio.gz image. # The image is included using .incbin, a dependency which is not # tracked automatically. $(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE -ifdef CONFIG_INITRAMFS_ROOT_UID -gen_initramfs_args += -u $(CONFIG_INITRAMFS_ROOT_UID) -endif - -ifdef CONFIG_INITRAMFS_ROOT_GID -gen_initramfs_args += -g $(CONFIG_INITRAMFS_ROOT_GI...
2017 Sep 08
5
Performance of large llvm::ConstantDataArrays
I'm running into some pretty bad performance in llc.exe when compiling some large neural networks into code that contains some very large llvm::ConstantDataArrays, some are { size=102,760,448 }. There's a small about of actual code for processing the network, but the assembly is mostly global data. I'm finding that llc.exe memory spikes up around 30 gigabytes and the job takes 20-30
2007 Jun 01
2
another RFC patch: bzImage with ELF payload
...=================================================================== --- /dev/null +++ b/arch/i386/boot/compressed/piggy.S @@ -0,0 +1,10 @@ +.section .data.compressed,"a",@progbits + +.globl input_data, input_len, output_len + +input_len: .long input_data_end - input_data + +input_data: +.incbin "vmlinux.bin.gz" +output_len = .-4 +input_data_end: =================================================================== --- a/arch/i386/boot/compressed/vmlinux.lds +++ b/arch/i386/boot/compressed/vmlinux.lds @@ -1,13 +1,12 @@ OUTPUT_FORMAT("elf32-i386", "elf32-i386" -O...
2007 Jun 01
2
another RFC patch: bzImage with ELF payload
...=================================================================== --- /dev/null +++ b/arch/i386/boot/compressed/piggy.S @@ -0,0 +1,10 @@ +.section .data.compressed,"a",@progbits + +.globl input_data, input_len, output_len + +input_len: .long input_data_end - input_data + +input_data: +.incbin "vmlinux.bin.gz" +output_len = .-4 +input_data_end: =================================================================== --- a/arch/i386/boot/compressed/vmlinux.lds +++ b/arch/i386/boot/compressed/vmlinux.lds @@ -1,13 +1,12 @@ OUTPUT_FORMAT("elf32-i386", "elf32-i386" -O...
2007 Jun 20
9
[PATCH 0/9] x86 boot protocol updates
...up the bzImage build process process. I've eliminated the need for the tools/build program, and instead use the linker to do more heavy lifting. I've also removed some somewhat obscure uses of ld and objcopy wrap binary files in ELF .o wrappers, and replaced with with .S files containing .incbin. The downside is that its making a bit more complex use of linker scripts, which always opens scope for finding more binutils bugs. Only one way to find out... Tested to check the generated kernels boot under qemu's internal bootload and grub, as well as booting under Xen (with an appropriat...
2007 Jun 20
9
[PATCH 0/9] x86 boot protocol updates
...up the bzImage build process process. I've eliminated the need for the tools/build program, and instead use the linker to do more heavy lifting. I've also removed some somewhat obscure uses of ld and objcopy wrap binary files in ELF .o wrappers, and replaced with with .S files containing .incbin. The downside is that its making a bit more complex use of linker scripts, which always opens scope for finding more binutils bugs. Only one way to find out... Tested to check the generated kernels boot under qemu's internal bootload and grub, as well as booting under Xen (with an appropriat...
2007 Jun 06
7
[PATCH RFC 0/7] proposed updates to boot protocol and paravirt booting
This series: 1. Updates the boot protocol to version 2.07 2. Clean up the existing build process, to get rid of tools/build and make the linker do more heavy lifting 3. Make the bzImage payload an ELF file. The bootloader can extract this as a naked ELF file by skipping over boot_params.setup_sects worth of 16-bit setup code. 4. Update the boot_params to 2.07, and update the
2007 Jun 06
7
[PATCH RFC 0/7] proposed updates to boot protocol and paravirt booting
This series: 1. Updates the boot protocol to version 2.07 2. Clean up the existing build process, to get rid of tools/build and make the linker do more heavy lifting 3. Make the bzImage payload an ELF file. The bootloader can extract this as a naked ELF file by skipping over boot_params.setup_sects worth of 16-bit setup code. 4. Update the boot_params to 2.07, and update the
2006 Apr 08
0
[WIP] rebuild initramfs when content changes
...src)/utils $(Q)$(MAKE) $(klibc)=$(src)/dash $(Q)$(MAKE) $(klibc)=$(src)/gzip endif subdir- := klibc kinit utils dash gzip # Generate builtin.o based on initramfs_data.o obj-y := initramfs_data.o # initramfs_data.o contains the initramfs_data.cpio.gz image. # The image is included using .incbin, a dependency which is not # tracked automatically. $(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE ##### # Generate the initramfs cpio archive # Following steps are executed: # Create list of files to be included in archive # If any of the files are newer than target generate new cpi...
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
.../vsyscall.S =================================================================== --- head-2007-02-27.orig/arch/i386/kernel/vsyscall.S 2007-03-05 10:00:18.000000000 +0100 +++ head-2007-02-27/arch/i386/kernel/vsyscall.S 2007-02-27 16:27:37.000000000 +0100 @@ -12,4 +12,20 @@ vsyscall_sysenter_start: .incbin "arch/i386/kernel/vsyscall-sysenter.so" vsyscall_sysenter_end: +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) + + .align 4 + + .globl vdso_rel_int80_start, vdso_rel_int80_end +vdso_rel_int80_start: + .include "arch/i386/kernel/vsyscall-int80.rel" +vdso_rel_in...
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
.../vsyscall.S =================================================================== --- head-2007-02-27.orig/arch/i386/kernel/vsyscall.S 2007-03-05 10:00:18.000000000 +0100 +++ head-2007-02-27/arch/i386/kernel/vsyscall.S 2007-02-27 16:27:37.000000000 +0100 @@ -12,4 +12,20 @@ vsyscall_sysenter_start: .incbin "arch/i386/kernel/vsyscall-sysenter.so" vsyscall_sysenter_end: +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) + + .align 4 + + .globl vdso_rel_int80_start, vdso_rel_int80_end +vdso_rel_int80_start: + .include "arch/i386/kernel/vsyscall-int80.rel" +vdso_rel_in...
2007 Mar 05
7
[PATCH 2/10] linux 2.6.18: COMPAT_VDSO
.../vsyscall.S =================================================================== --- head-2007-02-27.orig/arch/i386/kernel/vsyscall.S 2007-03-05 10:00:18.000000000 +0100 +++ head-2007-02-27/arch/i386/kernel/vsyscall.S 2007-02-27 16:27:37.000000000 +0100 @@ -12,4 +12,20 @@ vsyscall_sysenter_start: .incbin "arch/i386/kernel/vsyscall-sysenter.so" vsyscall_sysenter_end: +#if defined(CONFIG_XEN) && defined(CONFIG_COMPAT_VDSO) + + .align 4 + + .globl vdso_rel_int80_start, vdso_rel_int80_end +vdso_rel_int80_start: + .include "arch/i386/kernel/vsyscall-int80.rel" +vdso_rel_in...
2016 Mar 14
4
[lld] supporting binary-to-ELF conversion
One of the issues I reported in using lld as the FreeBSD base system linker is that the base system currently uses ld -r to convert a binary file (device firmware image) into an ELF object: > A tool for loading firmware into a wireless USB device includes a > built-in copy of the firmware image, and the image is converted to an > ELF file using ld -r. The invocation is: ld -b binary -d
2007 Jun 15
11
[PATCH 00/10] paravirt/subarchitecture boot protocol
...the process to generate the bzImage. I've eliminated the need for the tools/build program, and instead use the linker to do more heavy lifting. I've also removed some somewhat obscure uses of ld and objcopy wrap binary files in ELF .o wrappers, and replaced with with .S files containing .incbin. The downside is that its making a bit more complex use of linker scripts, which always opens scope for finding more binutils bugs. Only one way to find out... Tested to check the generated kernels boot under qemu's internal bootload and grub, as well as booting under Xen (with an appropriat...
2007 Jun 15
11
[PATCH 00/10] paravirt/subarchitecture boot protocol
...the process to generate the bzImage. I've eliminated the need for the tools/build program, and instead use the linker to do more heavy lifting. I've also removed some somewhat obscure uses of ld and objcopy wrap binary files in ELF .o wrappers, and replaced with with .S files containing .incbin. The downside is that its making a bit more complex use of linker scripts, which always opens scope for finding more binutils bugs. Only one way to find out... Tested to check the generated kernels boot under qemu's internal bootload and grub, as well as booting under Xen (with an appropriat...
2007 Jun 15
11
[PATCH 00/10] paravirt/subarchitecture boot protocol
...the process to generate the bzImage. I've eliminated the need for the tools/build program, and instead use the linker to do more heavy lifting. I've also removed some somewhat obscure uses of ld and objcopy wrap binary files in ELF .o wrappers, and replaced with with .S files containing .incbin. The downside is that its making a bit more complex use of linker scripts, which always opens scope for finding more binutils bugs. Only one way to find out... Tested to check the generated kernels boot under qemu's internal bootload and grub, as well as booting under Xen (with an appropriat...
2005 Jul 29
1
move kbuild files to reflect dir structure in kernel
...ary -$(obj)/klibc/libc.a: FORCE - $(Q)$(MAKE) -rR -f $(srctree)/scripts/Kbuild.klibc obj=$(obj)/klibc - -initramfs-y += gzip - -initramfs-y := $(addprefix $(obj)/,$(initramfs-y)) -.PHONY: $(initramfs-y) - -# initramfs_data.o contains the initramfs_data.cpio.gz image. -# The image is included using .incbin, a dependency which is not -# tracked automatically. -$(obj)/initramfs_data.o: $(obj)/initramfs_data.cpio.gz FORCE - -$(initramfs-y): $(obj)/klibc/libc.a - $(Q)$(MAKE) -f $(srctree)/scripts/Kbuild.klibc obj=$@ - -ifdef CONFIG_INITRAMFS_ROOT_UID -gen_initramfs_args += -u $(CONFIG_INITRAMFS_ROOT_UID)...