[PATCH ARM/THUMB] replace mov with movs in crt0.S
Thomas Klein
th.r.klein@web.de
Tue Nov 29 01:21:00 GMT 2011
On 11/24/11 13:38, Richard Earnshaw wrote:
> On 24/11/11 13:08, Thomas Klein wrote:
>> On 11/24/11 11:42, Richard Earnshaw wrote:
>>> On 24/11/11 12:23, Thomas Klein wrote:
>>>> Attaching output of:
>>>> arm-elf-eabi-gcc -dM -E
>>>> -B/usr/home/thomas/work/build/env_newlib/arm-elf-eabi/thumb/newlib/
>>>> -isystem
>>>> /usr/home/thomas/work/build/env_newlib/arm-elf-eabi/thumb/newlib/targ-include
>>>> -isystem /usr/home/thomas/work/env/src/newlib/libc/include
>>>> -L/usr/home/thomas/work/build/env_newlib/./ld -mthumb
>>>> -DPACKAGE_NAME=\"newlib\" -DPACKAGE_TARNAME=\"newlib\"
>>>> -DPACKAGE_VERSION=\"1.19.0\" -DPACKAGE_STRING=\"newlib\ 1.19.0\"
>>>> -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -I.
>>>> -I../../../../../../../../env/src/newlib/libc/sys/arm -Os
>>>> -DARM_RDI_MONITOR -fno-builtin -Os -DARM_RDI_MONITOR -fno-builtin -g -Os
>>>> -mthumb -o crt0.defines
>>>> ../../../../../../../../env/src/newlib/libc/sys/arm/crt0.S
>>>>
>>>>
>>> Thanks, that all looks pretty sane.
>>>
>>> I wonder if you've built your GAS to default to something non-standard.
>>>
>>> R.
>>>
>> It was not my intention to do something like this.
>> I really hope I haven't changed this by mistake.
>>
>> Regards
>> Thomas
>>
>>
>>
> So two more questions.
>
> What is the actual command line passed by the compiler to the assembler
> (add -v to the options).
>
> What do you get if you assemble the following file manually (ie just run
> arm-none-elf-as gastest.s -o gastest.o
>
> I'm interested in the attributes added in this case.
>
> It might also help if you could add -save-temps to the compiler step
> above and send me the pre-processed output of the assembly file.
>
> R.
>
> gastest.s:
>
> .global .start
> .text
> .type .start, %function
> .align 0
> .start:
> orr r0, pc, #1
> bx r0
> .thumb
> bx lr
Attaching verbose command line output, preprocessed assembly file (of
crt0.S) and object file (of gastest.s).
Output of arm-elf-eabi-readelf -A gastest.o is:
Attribute Section: aeabi
File Attributes
Tag_CPU_arch: v4T
Tag_ARM_ISA_use: Yes
Tag_THUMB_ISA_use: Thumb-1
Tag_DIV_use: Not allowed
Regards
Thomas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: verbose
URL: <http://sourceware.org/pipermail/newlib/attachments/20111129/11dae9f7/attachment.ksh>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: crt0.s
URL: <http://sourceware.org/pipermail/newlib/attachments/20111129/11dae9f7/attachment-0001.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gastest.o
Type: application/octet-stream
Size: 664 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20111129/11dae9f7/attachment.o>
More information about the Newlib
mailing list