make fail - injector
See original GitHub issueHi, using Manjaro Linux but the build fail.
python-capstone python2-capstone Python 2.7.13 Python 3.6.2
What did i wrong ?
$ make cc -c injector.c -o injector.o -Wall injector.c:321:93: warning: excess elements in array initializer .start={.bytes={0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00}, .len=0}, ^~~~ injector.c:321:93: note: (near initialization for ‘total_range.start.bytes’) injector.c:322:91: warning: excess elements in array initializer .end={.bytes={0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff}, .len=0}, ^~~~ injector.c:322:91: note: (near initialization for ‘total_range.end.bytes’) cc injector.o -O3 -Wall -l:libcapstone.a -o injector -pthread /usr/bin/ld: injector.o: relocation R_X86_64_32S against undefined symbol `dummy_stack’ can not be used when making a shared object; recompile with -fPIC /usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make: *** [Makefile:35: injector] Error 1
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top GitHub Comments
Change the Makefile to:
all: injector
injector: injector.o $(CC) $(CFLAGS) $< -O3 -Wall -no-pie -l:libcapstone.a -o $@ -pthread
%.o: %.c $(CC) $(CFLAGS) -c $< -o $@ -Wall
clean: rm *.o injector
just do: make CFLAGS=-no-pie