bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/29958] New: frv linker always triggers LOAD segment with RWX per


From: vapier at gentoo dot org
Subject: [Bug ld/29958] New: frv linker always triggers LOAD segment with RWX permissions test by default
Date: Tue, 03 Jan 2023 06:42:51 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=29958

            Bug ID: 29958
           Summary: frv linker always triggers LOAD segment with RWX
                    permissions test by default
           Product: binutils
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: vapier at gentoo dot org
                CC: nickc at redhat dot com
  Target Milestone: ---
            Target: frv-elf

using the frv-elf target, sim testsuite fails now due to linker warnings ever
since this change:
https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=ba951afb99912da01a6e8434126b8fac7aa75107
Author: Nick Clifton <nickc@redhat.com>
Date:   Tue May 3 11:42:24 2022 +0100
Add a linker warning when creating potentially dangerous executable segments. 
Add tests, options to disabke and configure switches to choose defaults.

simple test:
$ cat test.s
.bss
.space 64
_stack:

.data
pass:
.string "pass\n"

.text
.global _start
_start:
.byte 0x00

$ ./gas/as-new test.s -o test.o
$ ./ld/ld-new test.o -o test
./ld/ld-new: warning: test has a LOAD segment with RWX permissions

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]