[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/19965] Copy relocation leads to change in read-only data
From: |
hjl.tools at gmail dot com |
Subject: |
[Bug ld/19965] Copy relocation leads to change in read-only data |
Date: |
Mon, 18 Apr 2016 17:25:13 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=19965
--- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> ---
(In reply to Andreas Schwab from comment #1)
> And how is that a bug? The program invokes undefined behavior.
Linker should generate copy relocation against read-only symbol
in .data.rel.ro section, instead of .bss section, so that the
copy of read-only symbol is also read-only after relocation at
run-time.
--
You are receiving this mail because:
You are on the CC list for the bug.