https://github.com/gottox/chelf
change or display the stack size of an ELF binary
https://github.com/gottox/chelf
cli hacktoberfest
Last synced: 12 months ago
JSON representation
change or display the stack size of an ELF binary
- Host: GitHub
- URL: https://github.com/gottox/chelf
- Owner: Gottox
- License: bsd-2-clause
- Created: 2018-10-23T21:36:53.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-01T13:45:58.000Z (almost 7 years ago)
- Last Synced: 2024-06-20T00:57:08.404Z (about 2 years ago)
- Topics: cli, hacktoberfest
- Language: C
- Homepage:
- Size: 16.6 KB
- Stars: 22
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
chelf - Change ELF headers
==========================
Changes or displays the stack size of an ELF binary.
This value is used by [musl-libc](http://musl-libc.org) to increase the
default stack size.
chelf supports both ELF32 and ELF64.
Building
--------
To build chelf a C compiler and a posix compatible libc are needed.
```
make
```
To install chelf:
```
cp chelf /usr/local/bin
```
Examples
--------
read the stack size of a file:
```
chelf /bin/sh
```
change the stack size of a file:
```
chelf -s 1052672 /usr/bin/gnome-shell
```
License
-------
See LICENSE