This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
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