From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Clifton To: binutils@sourceware.cygnus.com Subject: Re: name collision for ELF reloc sections Date: Thu, 01 Jul 1999 00:00:00 -0000 Message-id: <199905101511.IAA18002@elmo.cygnus.com> X-SW-Source: 1999-q2/msg00007.html Hi Ian, : From: Ian Lance Taylor : : Date: Mon, 10 May 1999 08:04:12 -0700 : From: Nick Clifton : : The patch solves this problem by making elf_fake_section look for : ".rel." as the start of a name of a REL section (and similarly : ".rela." for the start of a name of a RELA section). Looking for : the extra period guarantees that the section name cannot have been : generated from a real C/C++ function name, but I do not know if this : is safe. Is it possible to generate an ELF rel or rela section that : starts with .rel{a} but which does not have a second period : immediately following it ? : : I think your patch is correct. OK - I'll check it in. : In the longer term, making decisions of this sort based on the ELF : section name is wrong. Unfortunately it's pretty ingrained in the : current ELF code. Yeah - it did seem to be a rather hacky approach. :-) Cheers Nick