-
Notifications
You must be signed in to change notification settings - Fork 40
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
Add iputils static PIE build #87
base: master
Are you sure you want to change the base?
Conversation
e30b82c
to
11f2e97
Compare
Signed-off-by: Groute <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
Signed-off-by: Groute <[email protected]>
Signed-off-by: Groute <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
Signed-off-by: Groute <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @kouk. This is great. Please squash your commits into a single one. Add e detailed description of your contribution: executables added, scripts, README. No need to mention the Unikraft issues.
Hackathon points: 50
Make sure the following packages are installed: | ||
* gcc >= 8 (required for the `-static-pie` linking option) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure the following packages are installed: | |
* gcc >= 8 (required for the `-static-pie` linking option) | |
Make sure the following packages are installed: | |
* gcc >= 8 (required for the `-static-pie` linking option) |
|
||
For Debian, run the command below to install all requirements: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash | |
```console |
The static PIE ELF file are located in the current directory. | ||
If you want to rebuild them, run: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash | |
```console |
The resulting binaries can be used as is. | ||
For example, you can ping an address by issuing the command: | ||
|
||
```bash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
```bash | |
```console |
1. When running in KVM with LWIP you can't use RAW sockets because they're not | ||
available by default. See this for more information: | ||
https://github.com/unikraft/lib-lwip/pull/2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1. When running in KVM with LWIP you can't use RAW sockets because they're not | |
available by default. See this for more information: | |
https://github.com/unikraft/lib-lwip/pull/2 | |
1. When running in KVM with LWIP you can't use RAW sockets because they're not available by default. | |
See [this](https://github.com/unikraft/lib-lwip/pull/2) for more information. |
2. There is a bug in LWIP where normal sockets (not RAW) that use ICMP protocol | ||
are sent using UDP protocol instead. See https://github.com/unikraft/lib-lwip/issues/32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
2. There is a bug in LWIP where normal sockets (not RAW) that use ICMP protocol | |
are sent using UDP protocol instead. See https://github.com/unikraft/lib-lwip/issues/32 | |
2. There is a bug in LWIP where normal sockets (not RAW) that use ICMP protocol are sent using UDP protocol instead. | |
See [issue `#32`](https://github.com/unikraft/lib-lwip/issues/32). |
Make sure the following packages are installed: | ||
* gcc >= 8 (required for the `-static-pie` linking option) | ||
* autotools | ||
* meson |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
* meson | |
* meson | |
* xsltproc |
Includes ping, arping, etc.
Fixes: #86