This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: adding new instruction


"aram bharathi" <arambharathi@linuxmail.org> writes:

>   i like to add a new instruction based on thumb ISA. i have added the instruction in both as and gcc. both of them are working correctly. but when i call ld it shows an error like
> 
> /home/.../arm-elf-ld : /home/../arm-elf/lib/libc.a(printf.o)(printf): warning : interworking not enabled
> first occurance : /tmp/cc00zhyh.o : thumb call to arm
> /tmp//cc00zhyh.o(.text+0x4e>: In function 'main'
> new.c:internal error: dangerous error
> 
> whether i have to change anything in the ld. i have searched for the ld source file but i counldnt get one in the ld folder. which file has to modified first and what kind of changes are needed.

The source code for that error is in the bfd directory.  In general,
if you want to link ARM and Thumb code together, you should compile
all your code with the -mthumb-interwork option.  See the
documentation.

Ian


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