- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-27-2012 07:48 AM
hello everybody!
I have a two questions:
1) What are the three sections '.init' , '.text' , '.fini' in the linker script? what are the differences between them?
2) How can I know how match place needed for my code in order to avoid overlapping?
thanks a lot
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
04-30-2012 12:51 AM
The linker script controls the placement of the object code, data, stack, and heap in specific memory locations. Do u know what is an object file? it is an assembled piece of code ie in machine language.There few sections on it like .data (read wrte data section),.text (text section) etc
supoose u write
int data[10] = {0,1,2,3,4,5,6,7,8,9};...................this is .data /* DATA */
.
,
'
I = I + 10; /* TEXT */
like this... similarly
.init is Language initialization code & .fini is Language cleanup code
To know ur program size do,
- Select Software > Get Program Size. The Choose a Software Application dialog box opens.
- Select the project for which you want to view the program size.
- Click OK.
regards
JOY
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-01-2012 03:07 AM
thanks!
just one thing more - I don't have a tab 'software', so how can I know the suze of the code?
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-01-2012 03:29 AM
Software tab must be in ur EDK software,which version u r using?
I am using EDK 11.1 and it is in it
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-01-2012 03:34 AM
I'm using EDK 13.2 and I don't have this tab
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-29-2012 01:15 AM
Research Fellow
University of Calcutta, India
Re: question about linker script file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
05-31-2012 05:54 AM











