Details
- Reviewers
MaskRay - Commits
- rG8527f32f0a16: [lld][ELF] Support BFD name elf32-avr
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| lld/test/ELF/linkerscript/avr5.test | ||
|---|---|---|
| 16 | This two disassembled lines corresponds to sts abc+1, r25 sts abc, r24 in the original assmebly source. We can see that the address of variable abc is 100, which is correct. | |
| lld/test/ELF/linkerscript/avr5.test | ||
|---|---|---|
| 12 | I expect to check both section addresses and variable addresses. | |
| lld/test/ELF/linkerscript/avr5.test | ||
|---|---|---|
| 25 | AVR is harward CPU, it is common that program memory and data memory are isolated to two different regions. | |
| lld/ELF/ScriptParser.cpp | ||
|---|---|---|
| 440 | move this after EM_386 | |
| lld/test/ELF/linkerscript/Inputs/avr5.s | ||
| 5 ↗ | (On Diff #429226) | These instructions are not meaningful to ld. One single rjmp _start is sufficient testing a relocation. |
| lld/test/ELF/linkerscript/avr5.test | ||
| 3 | Use split-file | |
| 25 | Is it common to start at zero address? | |
| lld/test/ELF/linkerscript/Inputs/avr5.s | ||
|---|---|---|
| 5 ↗ | (On Diff #429226) | Unfortunately rjmp can not be decoded correctly by llvm-objdump, due to bugs in AVR Disassembler (But GNU's avr-bjdump can). Currently I have to use LDI, which load an int8 immediate to a register. |
| lld/test/ELF/linkerscript/avr5.test | ||
| 25 | Yes. Most devices reset to PC = 0. | |
| lld/test/ELF/linkerscript/avr5.test | ||
|---|---|---|
| 3 | Done. Splited to two .test files. | |
| lld/test/ELF/linkerscript/avr5-relocs.test | ||
|---|---|---|
| 8 ↗ | (On Diff #429449) | VMA of variable def is 0x802, so 2 => r24 and 8 => r25. |
| lld/test/ELF/linkerscript/avr5-sections.test | ||
|---|---|---|
| 1 ↗ | (On Diff #429461) | I am not familiar with that. do you mean:
|
| lld/test/ELF/linkerscript/avr5-sections.test | ||
|---|---|---|
| 1 ↗ | (On Diff #429461) | rg split-file in this directory and see I use split-file. |
| lld/test/ELF/linkerscript/avr5-relocs.test | ||
|---|---|---|
| 11 ↗ | (On Diff #429461) | I have added a check line for that OUTPUT_ARCH(avr:5) input: # HEAD: 0x5, EF_AVR_ARCH_AVR5 |
| lld/test/ELF/linkerscript/avr5.test | ||
|---|---|---|
| 4 | ||
move this after EM_386