All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Mosberger <davidm@napali.hpl.hp.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] [patch] Assign __gp to middle of short data sections
Date: Thu, 01 Aug 2002 06:26:13 +0000	[thread overview]
Message-ID: <marc-linux-ia64-105590701905873@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905870@msgid-missing>

>>>>> On Thu, 01 Aug 2002 16:00:39 +1000, Keith Owens <kaos@ocs.com.au> said:

  >> . = ALIGN(16); __gp = . + 0x200000; /* gp must be 16-byte aligned
  >> for exc. table */

  Keith> I tried that, same error, it is definitely a size problem.
  Keith> With my build, _data + 0x200000 (where __gp used to be) is
  Keith> e0000000049b7490, got starts at e000000004ced170, a
  Keith> difference from gp of 0x335ce0 bytes.  imm22 can only do +/-
  Keith> 0x200000.

Please try with the latest 2.4.18 patch---__gp *is* defined after
.data, not before.

  >>  The addresses in the exception table are currently gp-relative
  >> (so they fit in 32 bits), with the least-significant four bits
  >> reserved to encode extra info (such as slot number).  If someone
  >> cares, this table probably could be converted to use IP-relative
  >> addresses, in which case this constraint could be dropped.

  Keith> In that case __ex_table should be moved to the same place as
  Keith> got, sdata, sbss.  As it stands, the gprel data is split with
  Keith> all the read only data plus init code between them.  ld does
  Keith> not detect errors for gprel in ex_table because __ex_table is
  Keith> not marked as short.

No, the gp-relative values in the exception table are 32-bits wide;
there is no 22-bit limitation there.

	--david


      parent reply	other threads:[~2002-08-01  6:26 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-08-01  3:17 [Linux-ia64] [patch] Assign __gp to middle of short data sections Keith Owens
2002-08-01  4:01 ` [Linux-ia64] [patch] Assign __gp to middle of short data sect Luck, Tony
2002-08-01  4:10 ` [Linux-ia64] [patch] Assign __gp to middle of short data sections David Mosberger
2002-08-01  6:00 ` Keith Owens
2002-08-01  6:26 ` David Mosberger [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=marc-linux-ia64-105590701905873@msgid-missing \
    --to=davidm@napali.hpl.hp.com \
    --cc=linux-ia64@vger.kernel.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.