This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[x86] gas error: can't extend frag 2134796 chars


Hi,

It seems there is a regression in GAS x86-64. The following:

# 1 "arch/x86/boot/compressed/piggy.S"
# 1 "<built-in>"
# 1 "<command-line>"
# 1 "./include/generated/autoconf.h" 1
# 1 "<command-line>" 2
# 1 "arch/x86/boot/compressed/piggy.S"
.section ".rodata..compressed","a",@progbits
.globl z_input_len
z_input_len = 2134796
.globl z_output_len
z_output_len = 5716952
.globl z_extract_offset
z_extract_offset = 0x37b000
.globl z_extract_offset_negative
z_extract_offset_negative = -0x37b000
.globl input_data, input_data_end
input_data:
.incbin "zero"
input_data_end:

with `zero' being:

% dd if=/dev/zero of=zero count=1 bs=2134796

triggers:

% /src/x86-64/obj/destdir/lib/gcc/x86_64-none-linux/4.7.0/../../../../x86_64-none-linux/bin/as
--32 -o piggy.o piggy.s
GNU assembler version 2.21.53 (x86_64-none-linux) using BFD version
(GNU Binutils) 2.21.53.20110726
arch/x86/boot/compressed/piggy.S: Assembler messages:
arch/x86/boot/compressed/piggy.S:12: Fatal error: can't extend frag
2134796 chars

While the system assembler is fine:

% as -v --32 -o piggy.o piggy.s
GNU assembler version 2.20.51.0.7 (x86_64-redhat-linux) using BFD
version version 2.20.51.0.7-8.fc14 20100318

 - Arnaud


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]