[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug binutils/694] assertion failure while trying to link qemu 0.6.1
From: |
Nick Clifton |
Subject: |
Re: [Bug binutils/694] assertion failure while trying to link qemu 0.6.1 |
Date: |
Wed, 02 Feb 2005 10:56:51 +0000 |
User-agent: |
Mozilla Thunderbird 1.0 (X11/20041206) |
Hi bero,
Trying to compile qemu 0.6.1 results in an ld assertion failure:
/usr/bin/ld: qemu-fast: Not enough room for program headers (allocated 5, need
6)
Please read the section in the linker manual about this error message:
When producing an ELF output file, if the linker script uses the
SIZEOF_HEADERS builtin function, the linker must compute the
number of program headers before it has determined all the section
addresses and sizes. If the linker later discovers that it needs
additional program headers, it will report an error "not enough
room for program headers". To avoid this error, you must avoid using
the SIZEOF_HEADERS function, or you must rework your linker
script to avoid forcing the linker to use additional program headers,
or you must define the program headers yourself using the PHDRS
command.
You will need to modify your linker script as suggested above.
Cheers
Nick