This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: .eh_frame section
- To: jason at cygnus dot com, rth at cygnus dot com
- Subject: Re: .eh_frame section
- From: meissner at cygnus dot com
- Date: Wed, 8 Oct 1997 18:38:03 -0400 (EDT)
- Cc: egcs at cygnus dot com, haible at ilog dot fr
| On Tue, Oct 07, 1997 at 10:42:08PM -0700, Jason Merrill wrote:
| > Richard was muttering something about a possibly suitable reloc style the
| > other day, but I don't remember the upshot.
|
| Most architectures have a word sized pc-relative relocation, but few
| (none?) provide a pseudo-op to use it. So there we are.
On the other hand, doing:
.long .-label
(or .word, .etc.) will often times generate the approprate relocation.
You can even say:
.L1:
.long .L1-label1
.long .L1-label2
.long .L1-label3
for switch statements that contain PC-relative offsets.