dinuxbg / gnupru

GCC and Binutils port for the TI PRU I/O processor
89 stars 11 forks source link

Add linker relaxation support for PMEM DIFF relocations #19

Closed dinuxbg closed 8 years ago

dinuxbg commented 8 years ago

The following code snippet will throw "expression too complex" error when relaxation is enabled: .word %pmem(L1 - L2) Note that with relaxation disabled, there is no issue.

Note: This causes GCC gcc.c-torture/execute/pr70460.c test case to fail.

Solution is to add PRU_32_PMEMDIFF and PRU_16_PMEMDIFF relocations.