9. Why - Linker script? | Assembly, C on Bare-metal RISC-V

preview_player
Показать описание


𝗜𝗻 𝘁𝗵𝗶𝘀 𝗩𝗶𝗱𝗲𝗼:
We run some experiments and discover why a linker script is needed and required in Embedded systems development. Along the way, we explore readelf utility and use it to find the entry point, the memory map for the virt machine on QEMU by exploring the virt implementation available in github. We run multiple experiments to explore how the machine executes the code and the role of ROM/DRAM memory locations.

𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro and intention
00:25 Intention - Exploring the reasons why a linker script may be needed
00:35 What does a linker script do?
01:07 Reasons to modifying the option for the linker in the Makefile
02:18 Experiment 1 - Normal execution and the value of PC
04:33 make and the missing _start, the use of .globl directive in an assembly program

Want to try it yourself? Use the following resources/guide -
𝗟𝗮𝗯 𝗦𝗲𝘁𝘂𝗽 -
𝗗𝗼𝗰𝗸𝗲𝗿 𝗦𝗲𝘁𝘂𝗽:

𝙈𝙚𝙢𝙚𝙗𝙚𝙧𝙨:

#inpyjama #cninja #embeddedsystems #embedded #clanguage #arm #riscv
Рекомендации по теме
Комментарии
Автор

Just awesome! God bless you and your channel let it reach as much as people possible.

gnaneshme
Автор

There is very little information on the internet about linker script. Thanks for this. Would like to learn more about ld scripts.

usmannizami
Автор

this playlist is literally a gem. thanks so much. i hope u provide more videos. ur teaching is swesome

adityajha
Автор

can you suggest some more resources, for this part, and would it be better if we read some basics of Compiler Design and then again watch this video, cause I saw some gaps in my understanding, like at this point I was not able to draw a complete picture of the thing, or should I keep moving further in the series and this is enough from a programmers point of view ?

really waiting for the book, great content 🔥🔥🔥🔥

ashfaquekhan
Автор

Hello sir, u have mentioned about ROM code of vendor. Does primary bootloader is also the part of this ROM code?

abhinavbajpai
Автор

please provide systmatic embedded classes not getting any systmatic

Embedded_system-co
Автор

Is there any reason why the internal linker script can't correctly set entry point address to Why is it incorrectly set to 0x10054?

donythomas
Автор

Is qmeu-riscv-virt machine Von Neuman architecture?

donythomas
Автор

SIR CAN YOU GIVE SOME TUTORIAL AND TIPS AND TUTS REGARDING EMBEDDED C?

NMOS_AND_PMOS
visit shbcf.ru