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]

Custom section attributes (and more...)


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


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