4. Linker Script and Memory Map

In Chapter 3, we set up the development environment and developed a simple assembly language program to verify the environment. In this chapter, we continue to explore assembly language programming. We study how the executable image is organized and how it loads into memory before running. To understand this process, we first consider memory mapping. We next study basic concepts such as symbol resolution, relocation, and section merging. With these basic concepts as the foundation, we then discuss linker scripts using an example.

Memory Map

In an embedded system, we usually have memory in the form of RAM and ROM. The flash memory or ROM is usually a kind of read-only memory. It is a useful secondary form of storage, ...

Get Embedded Programming with Android: Bringing Up an Android System from Scratch now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.