bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gold mistreats -Wl,-Ttext,0x8200


From: Vladimir 'φ-coder/phcoder' Serbinenko
Subject: Re: gold mistreats -Wl,-Ttext,0x8200
Date: Sun, 03 Jun 2012 19:11:03 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:12.0) Gecko/20120430 Thunderbird/12.0.1

On 10.03.2012 19:19, Ian Lance Taylor wrote:

> "Vladimir 'φ-coder/phcoder' Serbinenko" <address@hidden> writes:
> 
>> Namely the minimal testcase is:
>> gcc -o 1.img -ffreestanding -Wl,-Ttext,0x8200 1.S -nostdlib -m32
>> The resulting file has .text at 9200 and not 8200
>> 1.S:
>> .text
>>
>> .globl _start
>> _start:
> 
> Thanks for the report.  For gold the -Ttext option sets the address of
> the text segment, not the .text section.  When I try your test case with
> current gold the text segment does indeed start at 0x8200, as expected.
> 

Hello, I still do need a way to put everything in one chunk without
holes which starts at a given address. Otherwise GRUB can't be compiled
with gold.

> Ian
> 



-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]