[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2019-04-09 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #33 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=e6aded7c34054a2eea55ec56ca3b997ddd0197cf commit e6aded7c34054a2eea55ec56ca3b

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2019-04-08 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #32 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by H.J. Lu : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c93c0e7f3f21f809d9390e2e7096f7e2cb8334e2 commit c93c0e7f3f21f809d9390e2e7096f7e

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #31 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=cc6b110b92572318bd32acf914b0fce9c4bb0a6f commit cc6b110b925723

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-27 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #30 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4ef97a1b459849ad190244c36b36d45bdd078030 commit 4ef97a1b459849ad190244c36b36

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-26 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #29 from Alan Modra --- Please attach the object files necessary to build your testcase and I'll find out where the linker is going wrong. -- You are receiving this mail because: You are on the CC list for the bug. __

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-26 Thread sandra at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #28 from sandra at codesourcery dot com --- The revised patch produces a failing executable identical to the bad one. I haven't had time to dig further yet. -- You are receiving this mail because: You are on the CC list for the b

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #27 from Alan Modra --- I'm also a little curious as to why nios2_elf32_create_dynamic_sections is called in check_relocs when the comment says "Create the .got section". Why not just create_got_section? -- You are receiving thi

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Alan Modra changed: What|Removed |Added Attachment #9858|0 |1 is obsolete|

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Alan Modra changed: What|Removed |Added Attachment #9855|0 |1 is obsolete|

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #24 from Alan Modra --- No, that patch doesn't look good. SEC_EXCLUDE ought to be set for htab->root.sdynrelro in nios2_elf32_size_dynamic_sections! -- You are receiving this mail because: You are on the CC list for the bug. ___

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread sandra at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #23 from sandra at codesourcery dot com --- Created attachment 9857 --> https://sourceware.org/bugzilla/attachment.cgi?id=9857&action=edit hacky patch Hmmm. I get a working program with the attached patch. No clue whether this

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #22 from Alan Modra --- This is weird. LOAD 0x001f20 0x3f20 0x3f20 0x0 0x0 RW 0x1000 A zero length PT_LOAD? Corresponds to [18] .data.rel.ro PROGBITS3f20 001f20 00 00 WA 0 0

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread sandra at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #21 from sandra at codesourcery dot com --- Nope, that's not it. I've attached a tarball with good/bad executables (from commits 9d19e4fdb7c684329c8b1b72796a0071708dabc7 and 5474d94f03aedba2f832006dc7d680cc15792a7b, respectively) a

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread sandra at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #20 from sandra at codesourcery dot com --- Created attachment 9856 --> https://sourceware.org/bugzilla/attachment.cgi?id=9856&action=edit before/after testcase output -- You are receiving this mail because: You are on the CC li

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #19 from Alan Modra --- Created attachment 9855 --> https://sourceware.org/bugzilla/attachment.cgi?id=9855&action=edit possible nios2 fix Sandra, looking over my patch again, I think it is most likely this hunk. - else if

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-25 Thread sandra at codesourcery dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 sandra at codesourcery dot com changed: What|Removed |Added CC||sandra at codesourcery

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-02-02 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #17 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Hans-Peter Nilsson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f73293264a46b8bd15c49ed86044b57f2531d8e commit 4f7329

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-26 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #16 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Hans-Peter Nilsson : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=1fbd05e16ebde966e44c1108dc77871f3fba329a commit 1fbd05e16ebde966e44c

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-26 Thread jiwang at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #15 from Jiong Wang --- (In reply to Alan Modra from comment #14) > If you define COMMONPAGESIZE, yes, you may waste up to COMMONPAGESIZE extra > on disk in order to *save* memory pages. > > To see this, imagine a system where mem

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-26 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #14 from Alan Modra --- If you define COMMONPAGESIZE, yes, you may waste up to COMMONPAGESIZE extra on disk in order to *save* memory pages. To see this, imagine a system where memory pages are 16k and disk pages are 4k. Consider

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-25 Thread jiwang at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #13 from Jiong Wang --- (In reply to Jiong Wang from comment #12) > (In reply to Alan Modra from comment #11) > > I deliberately left the arm FAILs showing. They are telling you that -z > > relro does not wotk on those target vari

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-25 Thread jiwang at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Jiong Wang changed: What|Removed |Added CC||jiwang at gcc dot gnu.org --- Comment #1

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-23 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Alan Modra changed: What|Removed |Added Status|ASSIGNED|RESOLVED Resolution|---

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-23 Thread clyon at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Christophe Lyon changed: What|Removed |Added CC||clyon at gcc dot gnu.org --- Commen

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #9 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Maciej W. Rozycki : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6984613a53528c818482c3a531e17a86bac6e7dc commit 6984613a53528c818482c3

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-18 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #8 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Maciej W. Rozycki : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=13338f4e1bdb2dbee5f767b47d192f68d411d5ab commit 13338f4e

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2017-01-12 Thread hjl.tools at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 H.J. Lu changed: What|Removed |Added CC||hjl.tools at gmail dot com --- Comment #7 f

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #6 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b9f351d14e9862d3521c24820671e6531d604364 commit b9f351d14e9862d

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-28 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #5 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9acc85a62eb76c270724bba15c889d2d05567b6a commit 9acc85a62eb76c270724bba15c889

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-27 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #4 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Cary Coutant : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a08db921c967484bbd4fb66ca2648548866cba59 commit a08db921c9674

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-27 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #3 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Cary Coutant : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=b733bcb7f58c42e0e0d94a3f266a4193030e5f3a commit b733bcb7f58c42e0e0d94a3f266

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #2 from cvs-commit at gcc dot gnu.org --- The binutils-2_28-branch branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=17026142ef35b62ac88bfe517b4160614902cb28 commit 17026142ef35b62

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-25 Thread cvs-commit at gcc dot gnu.org
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 --- Comment #1 from cvs-commit at gcc dot gnu.org --- The master branch has been updated by Alan Modra : https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=5474d94f03aedba2f832006dc7d680cc15792a7b commit 5474d94f03aedba2f832006dc7d68

[Bug ld/20995] Read-only data in ELF libraries may be remapped writable at runtime

2016-12-25 Thread amodra at gmail dot com
https://sourceware.org/bugzilla/show_bug.cgi?id=20995 Alan Modra changed: What|Removed |Added Status|NEW |ASSIGNED Assignee|unassigned a