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: [PATCH ARM/THUMB] replace mov with movs in crt0.S


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




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