[prev in list] [next in list] [prev in thread] [next in thread] 

List:       binutils-bugs
Subject:    [Bug ld/25151] New: writing section `.text' at huge (ie negative) file offset
From:       "akobets at mail dot ru" <sourceware-bugzilla () sourceware ! org>
Date:       2019-10-30 17:46:34
Message-ID: bug-25151-70 () http ! sourceware ! org/bugzilla/
[Download RAW message or body]

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

            Bug ID: 25151
           Summary: writing section `.text' at huge (ie negative) file
                    offset
           Product: binutils
           Version: 2.33
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: akobets at mail dot ru
  Target Milestone: ---

Ubuntu Linux 19.10, Kernel 5.3.0
prog.c
======
int start()
{
        return 1;
}
======
gcc -c -mcmodel=kernel -fno-PIC -O2 prog.c
ld  --oformat binary --entry start -Ttext 0xFFFFFFFFFF840000 -o prog.bin prog.o
warning: writing section `.text' at huge (ie negative) file offset
error: File truncated

This error in ld 2.32 too. But this error occur in Ubuntu Linux 19.10. There is
no error in Ubuntu Linux 19.04.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic