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.