bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/27905] New: qemu: ./src/hw/megasas.c:168:(.text.megasas_process_


From: mliska at suse dot cz
Subject: [Bug ld/27905] New: qemu: ./src/hw/megasas.c:168:(.text.megasas_process_op+0x3d): relocation
Date: Mon, 24 May 2021 07:54:27 +0000

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

            Bug ID: 27905
           Summary: qemu:
                    ./src/hw/megasas.c:168:(.text.megasas_process_op+0x3d)
                    : relocation
           Product: binutils
           Version: 2.37 (HEAD)
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: mliska at suse dot cz
  Target Milestone: ---

Created attachment 13467
  --> https://sourceware.org/bugzilla/attachment.cgi?id=13467&action=edit
reproducer

The issue happens since:

commit a7664973b24a242cd9ea17deb5eaf503065fc0bd (HEAD, refs/bisect/bad)
Author: Jan Beulich <jbeulich@suse.com>
Date:   Mon Apr 26 10:41:35 2021 +0200

    x86: correct overflow checking for 16-bit PC-relative relocs

I discussed that briefly with Jan in a private email thread. Steps to
reproduce:

$ gcc -I. 
-I/home/abuild/rpmbuild/BUILD/qemu-6.0.0/roms/seabios/builds/seabios-256k/
-Isrc -Os -MD -g -Wall -Wno-strict-aliasing -Wold-style-definition
-Wtype-limits -m32 -march=i386 -mregparm=3 -mpreferred-stack-boundary=2
-minline-all-stringops -fomit-frame-pointer -freg-struct-return -ffreestanding
-fno-delete-null-pointer-checks -ffunction-sections -fdata-sections -fno-common
-fno-merge-constants -fno-pie -fno-stack-protector -fstack-check=no
-Wno-address-of-packed-member -fcf-protection=none -Wa,-mx86-used-note=no
-DMODESEGMENT=1 -fno-defer-pop -fno-jump-tables -fno-tree-switch-conversion
-DMODE16=1 -m16 --param large-stack-frame=4 -fwhole-program -DWHOLE_PROGRAM -c
ccode16.i && ld -melf_i386 -r ccode16.o romlayout.o -o code16.o &&
/home/marxin/Programming/binutils/objdir/ld/ld-new -T rom.lds code16.o
...
code16.o: in function `mpt_scsi_process_op':
/home/abuild/rpmbuild/BUILD/qemu-6.0.0/roms/seabios/./src/hw/mpt-scsi.c:188:(.text.mpt_scsi_process_op+0x3a):
relocation truncated to fit: R_386_PC16 against
`.text.default_process_op.isra.0'
code16.o: in function `megasas_process_op':
/home/abuild/rpmbuild/BUILD/qemu-6.0.0/roms/seabios/./src/hw/megasas.c:168:(.text.megasas_process_op+0x3d):
relocation truncated to fit: R_386_PC16 against
`.text.default_process_op.isra.0'
code16.o: in function `handle_hwpic2':
/home/abuild/rpmbuild/BUILD/qemu-6.0.0/roms/seabios/./src/hw/pic.c:114:(.text.handle_hwpic2+0x1):
relocation truncated to fit: R_386_PC16 against `.text.pic_eoi2'

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