Page MenuHomePhabricator

[MSP430] Emit a separate section for every interrupt vector
ClosedPublic

Authored by krisb on Jan 14 2019, 6:33 AM.

Details

Summary

Linker scripts shipped by TI require to have every
interrupt vector in a separate section with a specific name:

SECTIONS
{

__interrupt_vector_XX   : { KEEP (*(__interrupt_vector_XX )) } > VECTXX
...

}

Follow the requirement emit the section for every vector
which contain address of interrupt handler:

.section  __interrupt_vector_XX,"ax",@progbits
.word %isr%

Diff Detail

Repository
rL LLVM

Event Timeline

krisb created this revision.Jan 14 2019, 6:33 AM
asl accepted this revision.Jan 16 2019, 5:48 AM
This revision is now accepted and ready to land.Jan 16 2019, 5:48 AM
This revision was automatically updated to reflect the committed changes.