[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/16685] Read-only data sections should not be executable
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/16685] Read-only data sections should not be executable |
Date: |
Fri, 09 Nov 2018 14:10:54 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=16685
H.J. Lu <hjl.tools at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Version|unspecified |2.31
Resolution|--- |DUPLICATE
Target Milestone|--- |2.31
--- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> ---
Fixed for 2.31:
address@hidden tmp]$ cat x.c
const char main[] = "1\300\303";
address@hidden tmp]$ gcc x.c
address@hidden tmp]$ ./a.out
Segmentation fault
address@hidden tmp]$ gcc x.c -Wl,-z,noseparate-code
address@hidden tmp]$ ./a.out
address@hidden tmp]$
*** This bug has been marked as a duplicate of bug 22393 ***
--
You are receiving this mail because:
You are on the CC list for the bug.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/16685] Read-only data sections should not be executable,
hjl.tools at gmail dot com <=