bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27073] New: s390 linker fails with "bad value" when building ker


From: nickc at redhat dot com
Subject: [Bug ld/27073] New: s390 linker fails with "bad value" when building kernel
Date: Tue, 15 Dec 2020 17:33:58 +0000

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

            Bug ID: 27073
           Summary: s390 linker fails with "bad value" when building
                    kernel
           Product: binutils
           Version: 2.36 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: nickc at redhat dot com
  Target Milestone: ---
            Target: s390

The s390 kernel is currently not building using the latest versions of the
upstream tools.  The following is a reduced test case based upon this failure:

  % cat rod.s
        .section .rodata
        .dc.l 0x1234
        .dc.l 0x5678

   % s390-linux-gnu-as rod.s -o rod.exe

   % cat tmp_main.ver

SECTIONS { .rodata : ALIGN(4) { __crc_system_state = .; LONG(0x015af7f4); } }
SECTIONS { .rodata : ALIGN(4) { __crc_static_key_initialized = .;
LONG(0xbea5ff1e); } }
SECTIONS { .rodata : ALIGN(4) { __crc_reset_devices = .; LONG(0xc2e587d1); } }
SECTIONS { .rodata : ALIGN(4) { __crc_loops_per_jiffy = .; LONG(0xba497f13); }
}

  % s390-linux-gnu-ld -r -o rod.exe rod.o -T tmp_main.ver
  s390-linux-gnu-ld: final link failed: bad value

Whilst the linker script is unusual, the test should pass, and indeed it does
so for other architectures.

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