[Long] Problem with ld

Maciej Piechotka uzytkownik2@gmail.com
Wed Jan 14 06:41:00 GMT 2009


Ian Lance Taylor <iant@google.com> writes:

> Maciej Piechotka <uzytkownik2@gmail.com> writes:
>
>> SECTIONS
>> {
>>         . = phys;
>>         .setup : 
>
>> How to force lower offset for .setup.
>
> It should work to use . = phys + SIZEOF_HEADERS,

But it dosen't:
  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .setup            PROGBITS        001000b4 006008 000044 00      0   0  1
                                                  ^^^^^^
> or to link with -N.
>

  [Nr] Name              Type            Addr     Off    Size   ES Flg Lk Inf Al
  [ 0]                   NULL            00000000 000000 000000 00      0   0  0
  [ 1] .setup            PROGBITS        00100000 006008 000044 00      0   0  1

> Ian
>

None of this option changed the offset in file of first section.

Regards
-- 
I've probably left my head... somewhere. Please wait untill I find it.
Homepage (pl_PL): http://uzytkownik.jogger.pl/
(GNU/)Linux User: #425935 (see http://counter.li.org/)



More information about the Binutils mailing list