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]

RE: Function call problem


>>>>> "Duszczak," == Duszczak, Richard <richd@enikia.com> writes:

    Duszczak,> This only happens to functions that I add.  Also, if I
    Duszczak,> move test() and test2() into the libads.a library main
    Duszczak,> can now call test() fine, but test() does not call
    Duszczak,> test2() properly.

    Duszczak,> This problem is driving me crazy.  Is there something
    Duszczak,> wrong with the way I'm doing this?  I used the exact
    Duszczak,> same makefile used to build the original ads-test
    Duszczak,> program.  Could this be a bug in the compiler/linker?

    Duszczak,> ANY advice or info would be greatly appreciated.

It looks to me like perhaps you are compiling the new source file, but 
somehow still linking with the old object file that was compiled
before your changes.  This causes the debugger to incorrectly display
stuff, because it is looking at the load map and the new object file,
but memory is from the old object file.  YMMV

-- 
--------  "And there came a writing to him from Elijah"  [2Ch 21:12]  --------
R. J. Brown III  rj@elilabs.com http://www.elilabs.com/~rj  voice 847 543-4060
Elijah Laboratories Inc. 457 Signal Lane, Grayslake IL 60030  fax 847 543-4061
-----  M o d e l i n g   t h e   M e t h o d s   o f   t h e   M i n d  ------
_______________________________________________
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]