Here are some excerpts from my .map file. I'm using Cstartup.S v1.1 from atmel and Cstartup_SAM7.c v1.3 also from atmel. *(.glue_7t) *(.glue_7) 0x00005e18 . = ALIGN (0x4) What is in the .glue_7t and .glue_7 sections? Where do they come from, why are they there, what documentation is it described in? Also I have an unrelated question about the mthomas hello world example. Why does #include "lib_AT91SAM7S64.h" have to be commented out? I see that functions from this library are used but they are declared in the board.h file by copy/pasting from lib_AT91SAM7S64.h. Why didnt he just include the library header rather than copy the declarations into another file?
outer_space wrote: > Here are some excerpts from my .map file. I'm using Cstartup.S v1.1 > from atmel and Cstartup_SAM7.c v1.3 also from atmel. > > *(.glue_7t) > *(.glue_7) > 0x00005e18 . = ALIGN (0x4) > > What is in the .glue_7t and .glue_7 sections? Where do they come from, > why are they there, what documentation is it described in? As far as I know at least the interface-functions for interworking generated internaly are placed in the glue-sections. It should be documented in the binutils/ld-manual but I'm not sure. Also see the file elf32-arm.c from the GNU binutils sources. > Also I have an unrelated question about the mthomas hello world example. > Why does #include "lib_AT91SAM7S64.h" have to be commented out? I see > that functions from this library are used but they are declared in the > board.h file by copy/pasting from lib_AT91SAM7S64.h. Why didnt he just > include the library header rather than copy the declarations into > another file? I guess you mean the at91sam7s64_uart_simple-example. Yes, this has not been well done - it's from the days when I started playing around with the SAM7-eval-board. I have done some small updates now and the "redundant" code has been removed, see http://www.siwawi.arubi.uni-kl.de/avr_projects/arm_projects/index_at91.html#at91uart Please check the AT91SAM7 "gamma"-example from the same page too - newer, more options. Martin Thomas
Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
Log in with Google account
No account? Register here.