From 15a51103e899264b1689fa9967c4f74c4417bca1 Mon Sep 17 00:00:00 2001 From: Imre Kaloz Date: Fri, 8 Jun 2007 10:44:01 +0000 Subject: add support for the AVR32 platform, namely the ATNGW100 board - joint work with wigyori git-svn-id: svn://svn.openwrt.org/openwrt/trunk@7533 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- .../502-avr32-bfd-dont-allow-direct-refs-to-bss.patch | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch (limited to 'toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch') diff --git a/toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch b/toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch new file mode 100644 index 0000000000..0a99091a3d --- /dev/null +++ b/toolchain/binutils/patches/2.17/502-avr32-bfd-dont-allow-direct-refs-to-bss.patch @@ -0,0 +1,19 @@ +Index: binutils/bfd/elf32-avr32.c +=================================================================== +--- binutils/bfd/elf32-avr32.c (revision 24565) ++++ binutils/bfd/elf32-avr32.c (working copy) +@@ -2446,9 +2446,13 @@ + after the relaxation code is done, so we can't really + trust that our "distance" is correct. There's really no + easy solution to this problem, so we'll just disallow +- direct references to SEC_DATA sections. */ ++ direct references to SEC_DATA sections. ++ ++ Oh, and .bss isn't actually SEC_DATA, so we disallow ++ !SEC_HAS_CONTENTS as well. */ + if (!dynamic && defined + && !(sym_sec->flags & SEC_DATA) ++ && (sym_sec->flags & SEC_HAS_CONTENTS) + && next_state->direct) + { + next_state = &relax_state[next_state->direct]; -- cgit v1.2.3