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: unwind-dw2.c: 2 new branch build failures overnight.


Richard Henderson wrote:
> On Fri, May 18, 2001 at 02:14:17AM -0500, Robert Lipe wrote:
> > > Ok, so is there any other way to generate pc-relative relocations
> > > for this target?
> > 
> > Shrug.   This one is a very SVR4-ish system that I've configured to 
> > use the native (again, with SVR4 lineage) assembler.
> 
> Does the following work for this assembler?
> 
> 	.long	foo@got
> 	.long	bar@gotoff
> 
> If so, this would be a workable alternative to pc-relative relocs.

It assembles on this family of assemblers, but only if the part after 
the "@" is in all caps.   I have no idea if it's doing what you want it 
to do.

$ cat r.s
.long foo@GOT
.long bar@GOTOFF
(robertl) rjlhome:/tmp
$ /udk/usr/ccs/bin/as  r.s
(robertl) rjlhome:/tmp
$ objdump --reloc --full-contents a.out
 
a.out:     file format elf32-i386
 
RELOCATION RECORDS FOR [.eh_frame]:
OFFSET   TYPE              VALUE
00000000 R_386_PC32        .text
 
 
Contents of section .text:
 0000 c3                                   .
Contents of section .data:
Contents of section .eh_frame:
 0000 00000000                             ....


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