Files
Filippo Cremonese c5680b2120 Refactor revng-merge-dynamic
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
2021-01-23 00:41:52 +01:00

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")