Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6687947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:20:52+00:00 2026-05-26T05:20:52+00:00

This may be an easy question but I am a beginner with the linker

  • 0

This may be an easy question but I am a beginner with the linker file of GNU GCC (codesourcery arm-none-eabi ver 4.5.2).

I have to initialize the Mmu in a ARM7 processor and in datasheet, it is said that the Mmu page table must be located at a 16kbyte (2^14) boundary.

For now I have come with this solution, but I’m almost certain that this is not the more efficient one!

ENTRY(_start)

SECTIONS
{
 . = 0x0;
 .text : {_stext = .;
*startall.o (.text)
. = 0x4000;
*MmuSdram0.o (.text)
*(.text)
_etext = .;}
 .data : {_sdata = .;
*(.data) 
_edata = .;}
 .bss : {_sbss = .;
*(.bss) 
_ebss = .;}
}

startall.o is an assembly file containing processor initialisation.
Next line, I set the address to 0x4000 (boundary of 2^14).
MmuSdram0.o is containing the Mmu page table.
Then follow the rest of the firmware.
Obviously, this solution give me a gap between the end of startall and 0x4000, which i a waste of memory space(I don’t like waste 😉

What I would do instead is to put the pagetable after the *(.text) but I don’t know how to do something like :
*(.text) “except” MmuSdram0.o
And I prefer to let the linker place the page table at the next available 2^14 boundary instead of fixing the address myself. I checked in the linker documentation, found ALIGN command, but I’m not sure how to use it correctly or if this even the command that fit my need…

Thanks in advance!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T05:20:52+00:00Added an answer on May 26, 2026 at 5:20 am

    hmm, place the __attribute__ (( aligned(16*1024) )) before the semicolon ‘;’ of your mmu table declaration

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This may seem an easy question, but not to me, also a search has
This may be an easy question to answer but I could not find a
I am pretty new to rails so this may be an easy question, but
This may be a bit of an easy, headdesk sort of question, but my
this may be a easy question, but I really need a light to go
This may be an easy question, but I'm stuck. I am trying to implement
Sorry if this question may seem easy to some but i cannot seem to
Updated: This may be an easy or a complex question, but in wpf, I
This may seem an easy question, but is there a best way in terms
This question may be easy and the answer obvious, but I can't seem to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.