public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* [x86] gas error: can't extend frag 2134796 chars
@ 2011-07-29 16:25 Arnaud Lacombe
  2011-07-29 17:02 ` H.J. Lu
  0 siblings, 1 reply; 5+ messages in thread
From: Arnaud Lacombe @ 2011-07-29 16:25 UTC (permalink / raw)
  To: binutils

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [x86] gas error: can't extend frag 2134796 chars
  2011-07-29 16:25 [x86] gas error: can't extend frag 2134796 chars Arnaud Lacombe
@ 2011-07-29 17:02 ` H.J. Lu
  2011-07-29 17:30   ` Arnaud Lacombe
  0 siblings, 1 reply; 5+ messages in thread
From: H.J. Lu @ 2011-07-29 17:02 UTC (permalink / raw)
  To: Arnaud Lacombe; +Cc: binutils

On Fri, Jul 29, 2011 at 8:58 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> 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

That is very very old.  Please try the current one from

http://www.kernel.org/pub/linux/devel/binutils/


-- 
H.J.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [x86] gas error: can't extend frag 2134796 chars
  2011-07-29 17:02 ` H.J. Lu
@ 2011-07-29 17:30   ` Arnaud Lacombe
  2011-07-29 17:40     ` H.J. Lu
  0 siblings, 1 reply; 5+ messages in thread
From: Arnaud Lacombe @ 2011-07-29 17:30 UTC (permalink / raw)
  To: H.J. Lu; +Cc: binutils

Hi,

On Fri, Jul 29, 2011 at 12:15 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Jul 29, 2011 at 8:58 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
>> 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
>
> That is very very old.
>
What is very very old ? the one breaking (snapshot from 2 days ago),
or the one working, shipped in Fedora 14 ?

> Please try the current one from
>
> http://www.kernel.org/pub/linux/devel/binutils/
>
gni ? should not I expect the official binutils (at least the one from
http://sourceware.org/git/?p=binutils.git;a=summary) to work ?

 - Arnaud

>
> --
> H.J.
>

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [x86] gas error: can't extend frag 2134796 chars
  2011-07-29 17:30   ` Arnaud Lacombe
@ 2011-07-29 17:40     ` H.J. Lu
  2011-07-29 22:47       ` Arnaud Lacombe
  0 siblings, 1 reply; 5+ messages in thread
From: H.J. Lu @ 2011-07-29 17:40 UTC (permalink / raw)
  To: Arnaud Lacombe; +Cc: binutils

On Fri, Jul 29, 2011 at 9:24 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
> Hi,
>
> On Fri, Jul 29, 2011 at 12:15 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>> On Fri, Jul 29, 2011 at 8:58 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
>>> 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
>>
>> That is very very old.
>>
> What is very very old ? the one breaking (snapshot from 2 days ago),
> or the one working, shipped in Fedora 14 ?

Sorry.  I was wrong.

>> Please try the current one from
>>
>> http://www.kernel.org/pub/linux/devel/binutils/
>>
> gni ? should not I expect the official binutils (at least the one from
> http://sourceware.org/git/?p=binutils.git;a=summary) to work ?
>
>  - Arnaud
>

It may have been fixed today.


-- 
H.J.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [x86] gas error: can't extend frag 2134796 chars
  2011-07-29 17:40     ` H.J. Lu
@ 2011-07-29 22:47       ` Arnaud Lacombe
  0 siblings, 0 replies; 5+ messages in thread
From: Arnaud Lacombe @ 2011-07-29 22:47 UTC (permalink / raw)
  To: H.J. Lu; +Cc: binutils

Hi,

On Fri, Jul 29, 2011 at 1:02 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> On Fri, Jul 29, 2011 at 9:24 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
>> Hi,
>>
>> On Fri, Jul 29, 2011 at 12:15 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
>>> On Fri, Jul 29, 2011 at 8:58 AM, Arnaud Lacombe <lacombar@gmail.com> wrote:
>>>> 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
>>>
>>> That is very very old.
>>>
>> What is very very old ? the one breaking (snapshot from 2 days ago),
>> or the one working, shipped in Fedora 14 ?
>
> Sorry.  I was wrong.
>
>>> Please try the current one from
>>>
>>> http://www.kernel.org/pub/linux/devel/binutils/
>>>
>> gni ? should not I expect the official binutils (at least the one from
>> http://sourceware.org/git/?p=binutils.git;a=summary) to work ?
>>
>>  - Arnaud
>>
>
> It may have been fixed today.
>
yes,

GNU assembler version 2.21.53 (x86_64-none-linux) using BFD version
(GNU Binutils) 2.21.53.20110729

is fine.

Thanks,
 - Arnaud

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2011-07-29 17:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-29 16:25 [x86] gas error: can't extend frag 2134796 chars Arnaud Lacombe
2011-07-29 17:02 ` H.J. Lu
2011-07-29 17:30   ` Arnaud Lacombe
2011-07-29 17:40     ` H.J. Lu
2011-07-29 22:47       ` Arnaud Lacombe

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).