diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/Makefile.in | 9 |
2 files changed, 12 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 2c4c7921147..42f79d2ae46 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2014-01-05 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | Port to GNU/Linux with recent grsecurity/PaX patches (Bug#16343). | ||
| 4 | * Makefile.in (SETFATTR): New macro. | ||
| 5 | (temacs$(EXEEXT)): Use it. | ||
| 6 | |||
| 1 | 2014-01-04 Martin Rudalics <rudalics@gmx.at> | 7 | 2014-01-04 Martin Rudalics <rudalics@gmx.at> |
| 2 | 8 | ||
| 3 | Fix maximization behavior on Windows (Bug#16300). | 9 | Fix maximization behavior on Windows (Bug#16300). |
diff --git a/src/Makefile.in b/src/Makefile.in index 78e555d8733..00889e9a277 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -108,11 +108,12 @@ LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ | |||
| 108 | ## Flags to pass to ld only for temacs. | 108 | ## Flags to pass to ld only for temacs. |
| 109 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) | 109 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_TEMACS) |
| 110 | 110 | ||
| 111 | ## If available, the full path to the paxctl program. | 111 | ## If available, the names of the paxctl and setfattr programs. |
| 112 | ## On grsecurity/PaX systems, unexec will fail due to a gap between | 112 | ## On grsecurity/PaX systems, unexec will fail due to a gap between |
| 113 | ## the bss section and the heap. This can be prevented by disabling | 113 | ## the bss section and the heap. Older versions nee paxctl to work |
| 114 | ## memory randomization in temacs with "paxctl -r". See bug#11398. | 114 | ## around this, newer ones setfattr. See Bug#11398 and Bug#16343. |
| 115 | PAXCTL = @PAXCTL@ | 115 | PAXCTL = @PAXCTL@ |
| 116 | SETFATTR = @SETFATTR@ | ||
| 116 | 117 | ||
| 117 | ## Some systems define this to request special libraries. | 118 | ## Some systems define this to request special libraries. |
| 118 | LIBS_SYSTEM=@LIBS_SYSTEM@ | 119 | LIBS_SYSTEM=@LIBS_SYSTEM@ |
| @@ -494,6 +495,8 @@ temacs$(EXEEXT): $(LIBXMENU) $(ALLOBJS) \ | |||
| 494 | $(TEMACS_POST_LINK) | 495 | $(TEMACS_POST_LINK) |
| 495 | test "$(CANNOT_DUMP)" = "yes" || \ | 496 | test "$(CANNOT_DUMP)" = "yes" || \ |
| 496 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) | 497 | test "X$(PAXCTL)" = X || $(PAXCTL) -r temacs$(EXEEXT) |
| 498 | test "$(CANNOT_DUMP)" = "yes" || test -z "$(SETFATTR)" || \ | ||
| 499 | $(SETFATTR) -n user.pax.flags -v r $@ | ||
| 497 | 500 | ||
| 498 | ## The following oldxmenu-related rules are only (possibly) used if | 501 | ## The following oldxmenu-related rules are only (possibly) used if |
| 499 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. | 502 | ## HAVE_X11 && !USE_GTK, but there is no harm in always defining them. |