Update the newlib devel branch with stuff from /trunk@1498.
-------- diffstat follows --------
/devel/newlib/configure | 336 176 160 0 +++++++------
/devel/newlib/Makefile.in | 12 3 9 0 -
/devel/newlib/scripts/build/kernel/linux.sh | 2 1 1 0
/devel/newlib/scripts/build/internals.sh | 1 0 1 0 -
/devel/newlib/scripts/build/libc/eglibc.sh | 1 0 1 0 -
/devel/newlib/scripts/build/mpfr.sh | 2 1 1 0
/devel/newlib/scripts/functions | 111 5 106 0 ----
/devel/newlib/scripts/config.guess | 7 5 2 0 +
/devel/newlib/scripts/config.sub | 3 2 1 0 +
/devel/newlib/scripts/saveSample.sh.in | 4 2 2 0
/devel/newlib/docs/overview.txt | 8 6 2 0 +
/devel/newlib/samples/armeb-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/sh4-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-elf/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/armeb-unknown-eabi/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/arm-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/ia64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/x86_64-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-gnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-e500v2-linux-gnuspe/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i686-nptl-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-iphone-linux-gnueabi/crosstool.config | 8 4 4 0
/devel/newlib/samples/armeb-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown_nofpu-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/i586-geode-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-unknown-linux-uclibc/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/mips-unknown-elf/crosstool.config | 2 0 2 0 -
/devel/newlib/samples/powerpc-405-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/armeb-unknown-linux-uclibcgnueabi/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/arm-unknown-eabi/crosstool.config | 12 3 9 0 -
/devel/newlib/samples/mipsel-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc64-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/alphaev56-unknown-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/samples/powerpc-860-linux-gnu/crosstool.config | 14 5 9 0 -
/devel/newlib/config/kernel/linux.in | 108 2 106 0 ----
/devel/newlib/config/global/ct-behave.in | 22 13 9 0 +
/devel/newlib/config/global/download.in | 210 15 195 0 +-------
/devel/newlib/config/libc/glibc.in | 7 7 0 0 +
/devel/newlib/config/libc/glibc-eglibc.in-common | 15 14 1 0 +
45 files changed, 382 insertions(+), 839 deletions(-)
1 http://sources.redhat.com/ml/binutils/2004-06/msg00010.html
2 --- binutils-2.15.90.0.3-old/bfd/elf32-arm.h 2004-04-12 14:56:33.000000000 -0500
3 +++ binutils-2.15.90.0.3/bfd/elf32-arm.h 2004-09-03 06:56:40.000000000 -0500
6 static bfd_boolean allocate_dynrelocs
7 PARAMS ((struct elf_link_hash_entry *h, PTR inf));
8 +static bfd_boolean elf32_arm_readonly_dynrelocs
9 + PARAMS ((struct elf_link_hash_entry *, PTR));
10 static bfd_boolean create_got_section
11 PARAMS ((bfd * dynobj, struct bfd_link_info * info));
12 static bfd_boolean elf32_arm_create_dynamic_sections
13 @@ -3531,6 +3533,37 @@
17 +/* Find any dynamic relocs that apply to read-only sections. */
20 +elf32_arm_readonly_dynrelocs (h, inf)
21 + struct elf_link_hash_entry *h;
24 + struct elf32_arm_link_hash_entry *eh;
25 + struct elf32_arm_relocs_copied *p;
27 + if (h->root.type == bfd_link_hash_warning)
28 + h = (struct elf_link_hash_entry *) h->root.u.i.link;
30 + eh = (struct elf32_arm_link_hash_entry *) h;
31 + for (p = eh->relocs_copied; p != NULL; p = p->next)
33 + asection *s = p->section;
35 + if (s != NULL && (s->flags & SEC_READONLY) != 0)
37 + struct bfd_link_info *info = (struct bfd_link_info *) inf;
39 + info->flags |= DF_TEXTREL;
41 + /* Not an error, just cut short the traversal. */
48 /* Set the sizes of the dynamic sections. */
51 @@ -3740,6 +3773,12 @@
55 + /* If any dynamic relocs apply to a read-only section,
56 + then we need a DT_TEXTREL entry. */
57 + if ((info->flags & DF_TEXTREL) == 0)
58 + elf_link_hash_traverse (&htab->root, elf32_arm_readonly_dynrelocs,
61 if ((info->flags & DF_TEXTREL) != 0)
63 if (!add_dynamic_entry (DT_TEXTREL, 0))