public inbox for gas2@sourceware.org
 help / color / mirror / Atom feed
From: Mumit Khan <khan@xraylith.wisc.edu>
To: Ian Lance Taylor <ian@cygnus.com>
Cc: gas2@cygnus.com
Subject: Re: i386-pe named linkonce section switching problem
Date: Sun, 06 Sep 1998 15:29:00 -0000	[thread overview]
Message-ID: <Pine.SUN.3.93.980905194658.13490A-100000@modi.xraylith.wisc.edu> (raw)
In-Reply-To: <199809052302.TAA24819@subrogation.cygnus.com>

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



      reply	other threads:[~1998-09-06 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-02  8:56 Mumit Khan
1998-09-05 16:02 ` Ian Lance Taylor
1998-09-06 15:29   ` Mumit Khan [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Pine.SUN.3.93.980905194658.13490A-100000@modi.xraylith.wisc.edu \
    --to=khan@xraylith.wisc.edu \
    --cc=gas2@cygnus.com \
    --cc=ian@cygnus.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).