This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: Custom section attributes (and more...)


>-----Original Message-----
>From: Davide Viti [mailto:Davide.Viti@icn.siemens.it]
>Sent: 18 February 2002 10:07

>Hi,

  Hi.  I see nobody's answered you yet, which is probably because linker
scripts are the least well understood thing around here......

>I'm trying to set the proper attributes for my custom section;
>basically I created a .vtable section containing something like this
>
>.section .vtable , "ax"
>
>.org 0x100
>	bl __init_main
>.....
>
>in my linker script I added the section and I compile and link fine.
>The problem is that __init_main, according to the map file, resides at
>0x1f554
>and when I run the program there's a crash because the jump points at
>0xffffc484.
>Any help would be thoroughly appreciated

  You probably better post your linker script.. I'm afraid I can't
personally offer any guarantees of being able to help, but let's all take
a look at it anyway...


      DaveK
-- 
Burn your ID card!  http://www.optional-identity.org.uk/
Help support the campaign, copy this into your .sig!


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************

------
Want more information?  See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com


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