GAS doesn't pass sections like GCC?
Dan Fowell
dfowell@intelligentline.com
Thu Jan 16 21:08:00 GMT 2003
Good call Rick! I found that my inline asm without the C function yielded
the following in my main object file (before linking):
8 .vect 000000a0 00000000 00000000 00035eb0 2**0
CONTENTS, RELOC, READONLY
But when inside the C function I got:
8 .vect 000000d4 00000000 00000000 00035f40 2**2
CONTENTS, ALLOC, LOAD, RELOC, READONLY, CODE
Does anyone know how to change the attributes of a section from within my
inline asm statement? Does .section have any flags I can flip?
Here's that asm snippet again:
__asm__ ("
.global _isr
_isr:
.section .vect
[Interrupt Handler]
");
Also this asm statement is just floating in my C file. Is that OK? Or is
there a better way besides having a separate asm file or putting it within a
C function?
thanks,
Dan
-----Original Message-----
From: rsustek@cisco.com [mailto:rsustek@cisco.com]
Sent: Thursday, January 16, 2003 2:53 PM
To: dfowell@intelligentline.com
Cc: crossgcc@sources.redhat.com
Subject: Re: GAS doesn't pass sections like GCC?
I don't have an answer, but try using the section header dumping flags
from the objdump command, to see what attributes might be different.
Perhaps the '-D' flag is sensitive to these attributes after all???
Rick
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list