Skip to content

Instantly share code, notes, and snippets.

@Embedded-linux
Created June 10, 2014 05:11
Show Gist options
  • Select an option

  • Save Embedded-linux/e92757892039ec307645 to your computer and use it in GitHub Desktop.

Select an option

Save Embedded-linux/e92757892039ec307645 to your computer and use it in GitHub Desktop.
u-boot porting
File Name: board/ti/am335x/u-boot.lds
-> This file talks about text, data sections of image file like
.text,
.data,
.rodata,
.bss,
.dynsym [Dynamic symbols] etc..
. = 0x00000000;
. = ALIGN(4);
.text :
{
__image_copy_start = .;
CPUDIR/start.o (.text*)
*(.text*)
}
. = ALIGN(4);
.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
. = ALIGN(4);
.data : {
*(.data*)
}
. = ALIGN(4);
. = .;
. = ALIGN(4);
.u_boot_list : {
#include <u-boot.lst>
}
. = ALIGN(4);
__image_copy_end = .;
....................................
....................................
....................................
-> This file talks about different sections [Text, data, rodata, bss]
of final image file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment