This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: .eh_frame section


| 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]