Details
- Reviewers
MaskRay - Commits
- rG8527f32f0a16: [lld][ELF] Support BFD name elf32-avr
Diff Detail
Event Timeline
lld/test/ELF/linkerscript/avr5.test | ||
---|---|---|
15 ↗ | (On Diff #429226) | 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 | ||
---|---|---|
11 ↗ | (On Diff #429226) | I expect to check both section addresses and variable addresses. |
lld/test/ELF/linkerscript/avr5.test | ||
---|---|---|
24 ↗ | (On Diff #429226) | 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 | ||
6 | These instructions are not meaningful to ld. One single rjmp _start is sufficient testing a relocation. | |
lld/test/ELF/linkerscript/avr5.test | ||
2 ↗ | (On Diff #429226) | Use split-file |
24 ↗ | (On Diff #429226) | Is it common to start at zero address? |
lld/test/ELF/linkerscript/Inputs/avr5.s | ||
---|---|---|
6 | 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 | ||
24 ↗ | (On Diff #429226) | Yes. Most devices reset to PC = 0. |
lld/test/ELF/linkerscript/avr5.test | ||
---|---|---|
2 ↗ | (On Diff #429226) | Done. Splited to two .test files. |
lld/test/ELF/linkerscript/avr5-relocs.test | ||
---|---|---|
8 | VMA of variable def is 0x802, so 2 => r24 and 8 => r25. |
lld/test/ELF/linkerscript/avr5-sections.test | ||
---|---|---|
2 | I am not familiar with that. do you mean:
|
lld/test/ELF/linkerscript/avr5-sections.test | ||
---|---|---|
2 | rg split-file in this directory and see I use split-file. |
lld/test/ELF/linkerscript/avr5-relocs.test | ||
---|---|---|
12 | 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 | ||
---|---|---|
3 ↗ | (On Diff #429502) |
move this after EM_386