GitHub - ABHIRAMSHIBU/rpimultiboot: This program will help one to boot to another boot partition given root access.
This program will help one to boot to another boot partition given root access. - GitHub - ABHIRAMSHIBU/rpimultiboot: This program will help one to boot to another boot partition given root access.
Bash:
/usr/bin/ld: test: in function `partitionOK':
:(.text+0xf0): multiple definition of `partitionOK'; /tmp/ccMcfdbw.o:test.c:(.text+0x0): first defined here
/usr/bin/ld: test: in function `_fini':
:(.fini+0x0): multiple definition of `_fini'; /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crti.o:(.fini+0x0): first defined here
/usr/bin/ld: test: in function `__data_start':
:(.data+0x0): multiple definition of `__data_start'; /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crt1.o:(.data+0x0): first defined here
/usr/bin/ld: test: in function `__data_start':
:(.data+0x4): multiple definition of `__dso_handle'; /usr/lib/gcc/arm-linux-gnueabihf/8/crtbegin.o:(.data+0x0): first defined here
/usr/bin/ld: test:(.rodata+0x0): multiple definition of `_IO_stdin_used'; /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crt1.o:(.rodata.cst4+0x0): first defined here
/usr/bin/ld: test: in function `_start':
:(.text+0x0): multiple definition of `_start'; /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crt1.o:(.text+0x0): first defined here
/usr/bin/ld: test: in function `main':
:(.text+0x1ac): multiple definition of `main'; /tmp/ccMcfdbw.o:test.c:(.text+0xbc): first defined here
/usr/bin/ld: test: in function `printhelp':
:(.text+0x178): multiple definition of `printhelp'; /tmp/ccMcfdbw.o:test.c:(.text+0x88): first defined here
/usr/bin/ld: test: in function `_init':
:(.init+0x0): multiple definition of `_init'; /usr/lib/gcc/arm-linux-gnueabihf/8/../../../arm-linux-gnueabihf/crti.o:(.init+0x0): first defined here
/usr/bin/ld: /usr/lib/gcc/arm-linux-gnueabihf/8/crtend.o:(.tm_clone_table+0x0): multiple definition of `__TMC_END__'; test::(.data+0x8): first defined here
collect2: error: ld returned 1 exit status
Hope you will help me, thanks in advance.
To compile..
Bash:
git clone https://github.com/ABHIRAMSHIBU/rpimultiboot/
cd rpimultiboot
gcc test.c -o test
If properly compiled
Bash:
sudo ./test -p [partitionNumberOfAlterativeBootPartition]