]> git.pld-linux.org Git - packages/crossavr32-binutils.git/blob - crossavr32-binutils-bfd-dont-allow-direct-refs-to-bss.patch
- updated gettext BR
[packages/crossavr32-binutils.git] / crossavr32-binutils-bfd-dont-allow-direct-refs-to-bss.patch
1 Index: binutils/bfd/elf32-avr32.c
2 ===================================================================
3 --- binutils/bfd/elf32-avr32.c  (revision 24565)
4 +++ binutils/bfd/elf32-avr32.c  (working copy)
5 @@ -2446,9 +2446,13 @@
6              after the relaxation code is done, so we can't really
7              trust that our "distance" is correct.  There's really no
8              easy solution to this problem, so we'll just disallow
9 -            direct references to SEC_DATA sections.  */
10 +            direct references to SEC_DATA sections.
11 +            
12 +            Oh, and .bss isn't actually SEC_DATA, so we disallow
13 +            !SEC_HAS_CONTENTS as well. */
14           if (!dynamic && defined
15               && !(sym_sec->flags & SEC_DATA)
16 +             && (sym_sec->flags & SEC_HAS_CONTENTS)
17               && next_state->direct)
18             {
19               next_state = &relax_state[next_state->direct];
This page took 0.156662 seconds and 3 git commands to generate.