bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/29954] New: bpf sim tests fail due to linker triggering LOAD seg


From: vapier at gentoo dot org
Subject: [Bug ld/29954] New: bpf sim tests fail due to linker triggering LOAD segment with RWX permissions test by default
Date: Tue, 03 Jan 2023 05:32:30 +0000

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

            Bug ID: 29954
           Summary: bpf sim tests fail due to linker triggering 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: jose.marchesi at oracle dot com, nickc at redhat dot com
  Target Milestone: ---
            Target: bpf

using the bpf target, the 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 -Ttext=0x0 -o test
./ld/ld-new: warning: test has a LOAD segment with RWX permissions

i know the use of -Ttext=0 is a bit odd, but it's what the bpf sim testsuite is
doing.  i'll leave it to Jose to figure out what the right approach is here.

-- 
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]