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


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

GCC and Hitachi H8300h (floating point problem) #2


Hello,

I have problem with floating point numbers. Look at following
example:

void main()
{
    float x = 1.0;
.....
}

Constant value of "1.0" are located in ".rodata" segment. 
In the linker script I use the following line:

.text 0x00041000 : { *(.text) *(.rodata); }

After program linking in program code I see processor instructions
to load value from memory at correct displacement from beginning 
of ".text" segment, but WITHOUT 0x00041000 OFFSET? Why???
I tried to write:

.text      0x00041000 : { *(.text); }
.rodata 0x00048000 : { *(.rodata); }

No effect...

Jurgis Armanavichius
Firma MEDELKOM, http://www.medelkom.com

_______________________________________________
New CrossGCC FAQ: http://www.objsw.com/CrossGCC
_______________________________________________
To remove yourself from the crossgcc list, send
mail to crossgcc-request@cygnus.com with the
text 'unsubscribe' (without the quotes) in the
body of the message.

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