Custom section attributes (and more...)

Davide Viti
Mon Feb 18 02:03:00 GMT 2002

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
and when I run the program there's a crash because the jump points at
Any help would be thoroughly appreciated


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

Want more information?  See the CrossGCC FAQ,
Want to unsubscribe? Send a note to

More information about the crossgcc mailing list