linux - user space program as build-in object -


i have user space program , want make build-in. reason doing because don't want 1 delete binary file created , kept in /root directory accidentally. invoke binary here

/etc/init.d 

questions

  1. can create user space program build-in obj-y option in makefile?

  2. if so, how call during boot time or build in called automatically during boot remember user space code?

can userspace program created using built-in obj-y option in makefile?

no. linux kernel makefiles used build object files linked within kernel image.


  1. if userspace binaries need packaged alongwith linux kernel image,
    consider using initramfs/initrd , build , package alongwith linux kernel image.

  2. next, if contents of initramfs/initrd must never removed @ runtime, 1 must

    • set appropriate permissions file, directory (deny write access)
      and
    • restrict access superuser account on system @ runtime.

Comments

Popular posts from this blog

routing - AngularJS State management ->load multiple states in one page -

python - GRASS parser() error -

Swift game error message -