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

Add iputils static PIE build #87

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Add iputils static PIE build #87

wants to merge 8 commits into from

Conversation

kouk
Copy link

@kouk kouk commented Mar 31, 2023

Includes ping, arping, etc.

Fixes: #86

@kouk kouk force-pushed the master branch 2 times, most recently from e30b82c to 11f2e97 Compare March 31, 2023 14:37
iAmGroute and others added 7 commits March 31, 2023 17:39
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
@kouk kouk marked this pull request as ready for review March 31, 2023 14:43
Signed-off-by: Konstantinos Koukopoulos <[email protected]>
@razvand razvand self-requested a review April 16, 2023 13:28
@razvand razvand self-assigned this Apr 16, 2023
@razvand razvand added the enhancement New feature or request label Apr 16, 2023
Copy link
Collaborator

@razvand razvand left a 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

Comment on lines +7 to +8
Make sure the following packages are installed:
* gcc >= 8 (required for the `-static-pie` linking option)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash
```console

The static PIE ELF file are located in the current directory.
If you want to rebuild them, run:

```bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash
```console

The resulting binaries can be used as is.
For example, you can ping an address by issuing the command:

```bash
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
```bash
```console

Comment on lines +60 to +62
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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.

Comment on lines +64 to +65
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* meson
* meson
* xsltproc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: In Progress
Status: In Progress
Development

Successfully merging this pull request may close these issues.

Add iputils static pie build
3 participants