[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Subsystem initialization functions in normal binary
From: |
Andreas Schwab |
Subject: |
Re: Subsystem initialization functions in normal binary |
Date: |
Tue, 13 Jan 2015 09:34:08 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Dmitry Antipov <address@hidden> writes:
> @@ -456,6 +460,7 @@ ifeq ($(CANNOT_DUMP),yes)
> else
> LC_ALL=C $(RUN_TEMACS) -batch -l loadup dump
> $(PAXCTL_if_present) -zex $@
> + $(STRIP_if_present) -R .once $@
Is it portable enough to strip a loadable section from an executable?
That necessarily leaves a hole in the text segment since it cannot
relocate the other sections, so it won't really have much effect on the
address space layout anyway, but can easily damage the binary.
Andreas.
--
Andreas Schwab, SUSE Labs, address@hidden
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."