Project

General

Profile

Actions

Bug #12016

closed

Use of GNU ld should explicitly specify the required output format

Added by Andy Fiddaman about 2 years ago. Updated about 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
bootloader
Start date:
Due date:
% Done:

100%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:

Description

grub and loader builds both invoke the GNU linker (gld) during their build but assume that the linker's default output mode is 32-bit.

As distributions move towards 64-bit-by-default tooling, the required output format must be specified.

For example, on the latest OmniOS bloody, errors such as the following occur during the build:

/usr/bin/gld -g  -nostdlib -N -Ttext 7C00 -o stage1.exec stage1.o
/usr/bin/gld: i386 architecture of input file `stage1.o' is incompatible with i386:x86-64 output
Actions

Also available in: Atom PDF