From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mumit Khan To: Ian Lance Taylor Cc: gas2@cygnus.com Subject: Re: i386-pe named linkonce section switching problem Date: Sun, 06 Sep 1998 15:29:00 -0000 Message-id: References: <199809052302.TAA24819@subrogation.cygnus.com> X-SW-Source: 1998/msg00217.html On Sat, 5 Sep 1998, Ian Lance Taylor wrote: > > The appended patch appears to fix this problems. > [ patch deleted ] I tried that already, and the example code simply crashes in etext(). I'm not sure where to look at this point. Here's what I've found (after applying your patch): case 1: jump table in linkonce section. Doesn't work. .section .text$func__Fc,"x" .linkonce discard .align 4 .globl _func__Fc .#define _func__Fc; .scl 2; .type 32; .endef _func__Fc: # ... .text # making it .section rdata doesn't help either. # ... .section .text$func__Fc,"x" The section is marked linkonce correctly, but crash at etext() at program startup. case 2: other sections such .drectve in the middle does work. Obviously, section switching while in a named section does work for innocuous ones like .drectve, but not for anything like .text/.data/etc. Any ideas where to look? Regards, Mumit