|
From: | Axel Habermann |
Subject: | Re: Possible Linker Bug with static template member on Solaris |
Date: | Tue, 15 Jun 2004 17:54:39 +0200 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 |
Ian Lance Taylor wrote:
Section Header[511]: sh_name: .gnu.linkonce.b._ZN19InternalNotificatorI12ChangeRecordE14notificatorMapEAxel Habermann <address@hidden> writes:Now this looks more like an assembler bug to me.Perhaps. Certainly the assembler should not set the CONTENTS or LOAD flags. I don't know if there a way for the compiler to tell the assembler this when using the Solaris syntax for the .section pseudo-op. What does the Solaris assembler do with this input? Does it set the section type to SHT_NOBITS or SHT_PROGBITS?
sh_addr: 0 sh_flags: [ SHF_WRITE SHF_ALLOC ] sh_size: 0x4 sh_type: [ SHT_PROGBITS ] sh_offset: 0x68398 sh_entsize: 0 sh_link: 0 sh_info: 0 sh_addralign: 0x4
.weak _ZN19InternalNotificatorI12ChangeRecordE14notificatorMapE .section .gnu.linkonce.b._ZN19InternalNotificatorI12ChangeRecordE14notificatorMapE,"aw",@nobitsHere the explicit @nobits tells the assembler what to do. Ian
Axel
[Prev in Thread] | Current Thread | [Next in Thread] |