Custom section attributes (and more...)

Davide Viti Davide.Viti@icn.siemens.it
Mon Feb 18 02:03:00 GMT 2002


Hi,
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

davide

--------------.                      ,-.  SS Padana Sup. km 158
Davide Viti    \    ,---------------'   \  I-20060 Cassina de' Pecchi   MI
Siemens ICM/N   `--'                     `--------------------------------


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