mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
c5680b2120
Notable changes: - Split in multiple files the existing revng-merge-dynamic script - Add the option to merge additional LOAD segments in the resulting binary - Align the new .dynstr to a 4 byte boundary - Ensure the last verneed entry is marked as such (vn_next == 0) - Ensure LOAD PHDRs are listed in ascending order, as mandated by ELF spec
20 lines
322 B
Python
20 lines
322 B
Python
#
|
|
# This file is distributed under the MIT License. See LICENSE.md for details.
|
|
#
|
|
|
|
import sys
|
|
|
|
|
|
verbose = True
|
|
|
|
|
|
def set_verbose(verb: bool):
|
|
global verbose
|
|
verbose = bool
|
|
|
|
|
|
def log(message):
|
|
# TODO: implement properly using python logging and setting the loglevel
|
|
if verbose:
|
|
sys.stderr.write(message + "\n")
|