This is the mail archive of the newlib@sourceware.org mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: thumb-2 and crt0.S init_hooks


Hi Bill,

ldr r3, .Lhwinit

The LR then contains a word-aligned address, rather than having bit 0 set to indicate thumb mode.

I think that the problem might be that you have not told the linker that hardware_init_hook and software_init_hook are thumb function names, and so it does not know that it needs to set the bottom bit when their addresses are taken. Try adding:


.thumb_func

just before you declare the hooks and see if that works.

Cheers
  Nick


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