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

Merge libpe #180

Merged
merged 342 commits into from Apr 23, 2023
Merged

Merge libpe #180

merged 342 commits into from Apr 23, 2023

Conversation

GoGoOtaku
Copy link
Collaborator

@GoGoOtaku GoGoOtaku commented Apr 23, 2023

This looks scary but is very much not that bad. Just adding libpe to the main repository while keeping git history in tact.

jweyrich and others added 30 commits October 30, 2013 02:40
You can load a file and keep its stream open for further usage
by using pe_load_ext with option LIBPE_OPT_NOCLOSE_FD. Example:

	pe_ctx_t ctx;
	pe_err_e err = pe_load_ext(&ctx, "file.exe", LIBPE_OPT_NOCLOSE_FD);

You do NOT need to manually close the stream since pe_unload already
takes care of it.
Be as precise as possible about type usage.
  Introduce new option: LIBPE_OPT_OPEN_RW.
  This is used to decide which flags to pass to open(2) and mmap(2).
  For instance, we should only call open(2) with O_RDWR if we have
  permission to write the file we're analyzing. The same applies to
  mmap(2) with MAP_SHARED.
- Fix pe_err_e values. Duh!
	07f915d: Makefile: Following Thermi's commit on pev to fix DESTDIR.
	4fd35d7: Revert "Fix support for DESTDIR."
It now validates the read range [ptr,size].
Added NetBSD support to libpe's Makefile (identical to Linux)
fredericopissarra and others added 28 commits February 4, 2021 11:48
Got rid of pe_utils_round_up() [unecessary].
refactored some routines, improve code performance, as well as added error checking for cases that had none
Some Linux distributions (such as Debian [1]) are striving to make their
build reproducible.

The usage of filesystem globbing as an input to the make build might
cause inconsistencies due to differences between locales [2]. This
inconsistent behavior prevents reproducible builds.

This patch sorts the Makefile inputs to ensure they will be always
processed in the same order [3], contributing to the build system
reproducibility.

[1] https://wiki.debian.org/ReproducibleBuilds
[2] https://reproducible-builds.org/docs/stable-inputs/#fn:sorted-wildcard
[3] https://reproducible-builds.org/docs/stable-inputs/
Sort Makefile inputs to make build reproducible
Checks if ordinal < exp->NumberOfFuntions before assigning value to a…
FIx rva2ofs when exe has no sections
@GoGoOtaku GoGoOtaku merged commit 6887088 into mentebinaria:master Apr 23, 2023
3 checks passed
@GoGoOtaku GoGoOtaku deleted the merge_libpe branch April 23, 2023 21:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet