aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2021-11-30 10:54:50 +0000
committerNick Clifton <nickc@redhat.com>2021-11-30 13:11:57 +0000
commit44b357eb9aefc77a8385e631d8e3035a664f2333 (patch)
tree6e6b168933d9ac723e3a056d586dceab3d757d6d /ld/scripttempl
parentae9aa73767ca46f34ee6ea915bdf13b77d058d4d (diff)
downloadfsf-binutils-gdb-44b357eb9aefc77a8385e631d8e3035a664f2333.zip
fsf-binutils-gdb-44b357eb9aefc77a8385e631d8e3035a664f2333.tar.gz
fsf-binutils-gdb-44b357eb9aefc77a8385e631d8e3035a664f2333.tar.bz2
ld: pru: Add pru_irq_map output section
* scripttempl/pru.sc (.pru_irq_map): Define output section. * testsuite/ld-pru/pru_irq_map-1.d: New test. * testsuite/ld-pru/pru_irq_map-2.d: New test. * testsuite/ld-pru/pru_irq_map.s: New test.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pru.sc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/scripttempl/pru.sc b/ld/scripttempl/pru.sc
index 97d8be0..56d07be 100644
--- a/ld/scripttempl/pru.sc
+++ b/ld/scripttempl/pru.sc
@@ -183,6 +183,12 @@ SECTIONS
${RELOCATING+ . += __STACK_SIZE ; }
} ${RELOCATING+ > dmem}
+ /* Remoteproc loader in Linux kernel 5.10 and later reads this section
+ to setup the PRUSS interrupt controller. The interrupt map section
+ is never referenced from PRU firmware, so there is no need to
+ place it in the target dmem memory. */
+ .pru_irq_map 0 : { *(.pru_irq_map) }
+
/* Stabs debugging sections. */
.stab 0 : { *(.stab) }
.stabstr 0 : { *(.stabstr) }