gold mistreats -Wl,-Ttext,0x8200
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: -- Regards Vladimir 'φ-coder/phcoder' Serbinenko signature.asc Description: OpenPGP digital signature ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: gold mistreats -Wl,-Ttext,0x8200
On 10.03.2012 19:19, Ian Lance Taylor wrote: > "Vladimir 'φ-coder/phcoder' Serbinenko" 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. That difference with BFD is annoying. In GRUB we need to use the exact address for .text. > Ian > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko signature.asc Description: OpenPGP digital signature ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
binutils configure locale bug (was Re: [Translation-team-uk] Переклади binutils)
(original in Ukrainian at bottom) According to Ukrainian translation translators binutils don't load the translations. My short investigation traced it to the following code: #if defined (HAVE_SETLOCALE) && defined (HAVE_LC_MESSAGES) setlocale (LC_MESSAGES, ""); #endif #if defined (HAVE_SETLOCALE) setlocale (LC_CTYPE, ""); #endif As you can see it's condititional to HAVE_SETLOCALE and HAVE_LC_MESSAGES. But the corresponding defines go exclusively to intl/config.h and is not present and hence undefined in other */config.h used by individual programs. On 31.03.2012 10:25, Yuri Chornoivan wrote: > Доброго дня, > > По всьому, жоден з перекладів binutils (binutils, ld, gprof тощо) не > завантажується під час роботи самих програм (не передбачено імпортування > каталогів перекладу на рівні програм). > > Чи були у когось успішні спроби завантажити програми з перекладеним > інтерфейсом? > > Заздалегідь вдячний за відповіді. > > З повагою, > Юрій > -- > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > ___ > Translation-team-uk mailing list > translation-team...@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/translation-team-uk -- Regards Vladimir 'φ-coder/phcoder' Serbinenko signature.asc Description: OpenPGP digital signature ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: gold mistreats -Wl,-Ttext,0x8200
On 10.03.2012 19:19, Ian Lance Taylor wrote: > "Vladimir 'φ-coder/phcoder' Serbinenko" 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 signature.asc Description: OpenPGP digital signature ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils
Re: gold mistreats -Wl,-Ttext,0x8200
On 04.06.2012 05:57, Ian Lance Taylor wrote: > "Vladimir 'φ-coder/phcoder' Serbinenko" writes: > >> On 10.03.2012 19:19, Ian Lance Taylor wrote: >> >>> "Vladimir 'φ-coder/phcoder' Serbinenko" 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. > > Are you saying that you can not do this with gold? No, because of the error I pointed to. If I use -Wl,-Ttext,0x7200 then it all works but it's obviously wrong. > > Please open a complete bug report at http://sourceware.org/bugzilla , > with the files needed to recreate the problem. > Done. it's the same as I filed here. > Ian > -- Regards Vladimir 'φ-coder/phcoder' Serbinenko signature.asc Description: OpenPGP digital signature ___ bug-binutils mailing list bug-binutils@gnu.org https://lists.gnu.org/mailman/listinfo/bug-binutils