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 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

Attachment: verbose
Description: Text document

Attachment: crt0.s
Description: Text document

Attachment: gastest.o
Description: Binary data


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