Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on Debian and other systems that enable PIE by default #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

infinity0
Copy link

@infinity0 infinity0 commented Oct 11, 2018

Before the patch:

$ make clean all
rm -f *.o injector
cc -fPIC -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’)
injector.c: In function ‘inject’:
injector.c:778:2: warning: asm operand 15 probably doesn’t match constraints
  __asm__ __volatile__ ("\
  ^~~~~~~
injector.c:778:2: error: impossible constraint in ‘asm’
make: *** [Makefile:38: injector.o] Error 1
2

@infinity0 infinity0 changed the title Fails to build, injector.c:778:2: error: impossible constraint in ‘asm’ Fix build on Debian and other systems that enable PIE by default Oct 11, 2018
@gogo2464
Copy link

I had the same issue. Should I make another PR? Your seems to be abandoned.

@infinity0
Copy link
Author

This project was last updated 4 years ago. My PR was updated 3 years ago. So I'd say it's the project that is abandoned, not my PR. :)

@gogo2464
Copy link

gogo2464 commented Sep 6, 2021

@infinity0 I want to continue this project. Issues are closed. What should I do?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants