mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
Instead of maintaining an include list, use an exclude list (if neccessary). This simplifies the `objcopy` calls a lot, and it's possible because `objcopy -O binary` only includes the memory dump of the contents of the input object file. [1] This means that sections like for debug information that do not occupy memory during the process execution are discarded by design. [2] In addition, if we do not want a particular ELF section, we can list it in the discard section of the linker script. [1] https://man7.org/linux/man-pages/man1/objcopy.1.html [2] https://man7.org/linux/man-pages/man5/elf.5.html Reviewed-by: Stefan Haberland <sth@linux.ibm.com> Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>