On Tue, Aug 7, 2012 at 4:27 PM, Dimitrios Apostolou <ji...@gmx.net> wrote: > On Tue, 7 Aug 2012, Ian Lance Taylor wrote: > >> On Tue, Aug 7, 2012 at 2:24 PM, Dimitrios Apostolou <ji...@gmx.net> wrote: >>> >>> >>> BTW I can't find why ELF_STRING_LIMIT is only 256, it seems GAS supports >>> arbitrary lengths. I'd have to change my code if we ever set it too high >>> (or >>> even unlimited) since I allocate the buffer on the stack. >> >> >> See the comment for ELF_STRING_LIMIT in config/elfos.h. gas is not >> the only ELF assembler. > > > I've seen it and thought that for non-GAS ELF platforms you should define it > to override elfos.h, I obviously misunderstood.
I'm not aware of any assembler-specific configuration files, other than broad differences like completely different i386 syntax. I think it would be best to avoid introducing such files when possible. > So now I'm curious, this > limit is there dominating all platforms because of the worst assembler? :-) Yes, but it's not like the limit matters in practice. Ian