Skip to contentSkip to conversation

Kernel Link Problems

DISCUSSION Bill Huey 2 participants 4 messages Oct 17, 2001 – Oct 18, 2001

lore
Share & tools
lore

Bill Huey

author
#0 lore raw

Hello,

I'm running the 2.4.12-ac3 and I get this while linking vmlinuz:

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

What's going on and how do I fix this ?

Thanks

bill

#1 lore raw
Quoted 6 lines · Bill Huey

I'm running the 2.4.12-ac3 and I get this while linking vmlinuz:

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

Same thing happening here on 2.4.12-ac{2,3}, 2.4.12-ac1 will link correctly

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

Distribution is Debian/unstable (apt-get dist-upgraded just before compile)

Linux neve 2.4.12-ac1 #7 Fri Oct 12 21:27:50 CEST 2001 i686 unknown

 Gnu C                  2.95.4
 Gnu make               3.79.1
 util-linux             2.11l
 mount                  2.11l
 modutils               2.4.10
 e2fsprogs              1.25
 reiserfsprogs          3.x.0j
 Linux C Library        2.2.4
 Dynamic linker (ldd)   2.2.4
 Procps                 2.0.7
 Net-tools              1.60
 Kbd                    1.06
 Sh-utils               2.0.11
Signature · 2 lines
Cliff Albert		| RIPE:	     CA3348-RIPE | www.oisec.net
[email protected]		| 6BONE:     CA2-6BONE	 | icq 18461740
author
#2 lore raw
In reply to Bill Huey
Quoted 6 lines · Cliff Albert
Quoted 4 lines

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

Same thing happening here on 2.4.12-ac{2,3}, 2.4.12-ac1 will link correctly

It's a Debian problem. Downgrade to the previous version of binutils.

bill

#3 lore raw
In reply to Bill Huey
Quoted 17 lines · Cliff Albert
Quoted 6 lines

I'm running the 2.4.12-ac3 and I get this while linking vmlinuz:

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

Same thing happening here on 2.4.12-ac{2,3}, 2.4.12-ac1 will link correctly

ld -m elf_i386 -Ttext 0x100000 -e startup_32 -o bvmlinux head.o misc.o piggy.o
ld: bvmlinux: Not enough room for program headers (allocated 2, need 3)
ld: final link failed: Bad value

Distribution is Debian/unstable (apt-get dist-upgraded just before compile)

Linux neve 2.4.12-ac1 #7 Fri Oct 12 21:27:50 CEST 2001 i686 unknown

Quoted 13 lines
 Gnu C                  2.95.4
 Gnu make               3.79.1
 util-linux             2.11l
 mount                  2.11l
 modutils               2.4.10
 e2fsprogs              1.25
 reiserfsprogs          3.x.0j
 Linux C Library        2.2.4
 Dynamic linker (ldd)   2.2.4
 Procps                 2.0.7
 Net-tools              1.60
 Kbd                    1.06
 Sh-utils               2.0.11

Some more investigation pointed me that this maybe a flaw in some package in debian-unstable. As 2.4.12-ac2 compiled on my laptop (which was not uptodate) and i've had reports that ac3 compiled just fine on machines running debian-stable.

Signature · 2 lines
Cliff Albert		| RIPE:	     CA3348-RIPE | www.oisec.net
[email protected]		| 6BONE:     CA2-6BONE	 | icq 18461740