[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gold mistreats -Wl,-Ttext,0x8200
From: |
Ian Lance Taylor |
Subject: |
Re: gold mistreats -Wl,-Ttext,0x8200 |
Date: |
Sat, 10 Mar 2012 10:19:22 -0800 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) |
"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.
Ian