]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Merge from mainline
authorAlan Modra <amodra@gmail.com>
Sat, 27 Apr 2002 12:51:27 +0000 (12:51 +0000)
committerAlan Modra <amodra@gmail.com>
Sat, 27 Apr 2002 12:51:27 +0000 (12:51 +0000)
2002-04-08  Alan Modra  <amodra@bigpond.net.au>
* ldlang.c (lang_size_sections): Don't complain about
SEC_NEVER_LOAD sections having no memory region specified.
* ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.

2002-04-07  matthew green  <mrg@redhat.com>
* ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.

2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
* emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
* emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".

ld/ChangeLog
ld/configure.host
ld/emulparams/elf64_s390.sh
ld/emulparams/elf_s390.sh
ld/ld.texinfo
ld/ldlang.c

index 0848b4920050910e4412167defb7bebd6d86cf26..346d5325c01f6912323a9d930c48023aac8b6043 100644 (file)
@@ -1,3 +1,18 @@
+2002-04-27  Alan Modra  <amodra@bigpond.net.au>
+
+       Merge from mainline
+       2002-04-08  Alan Modra  <amodra@bigpond.net.au>
+       * ldlang.c (lang_size_sections): Don't complain about
+       SEC_NEVER_LOAD sections having no memory region specified.
+       * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
+
+       2002-04-07  matthew green  <mrg@redhat.com>
+       * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
+
+       2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
+       * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
+       * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
+
 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
 
        * dep-in.sed: Cope with absolute paths.
index 56a950c6bcfec6a6897d367359b1d6facef7ab38..65c2fc7a21e0e275e30fb3cb785f071d7d5d6518 100644 (file)
@@ -223,6 +223,13 @@ x86_64-*-linux-gnu*)
 *-*-linux*)
   ;;
 
+*-*-netbsd*)
+  NATIVE_LIB_DIRS=/usr/lib
+  # NetBSD typically does not use the GCC crtstuff, so ignore it.
+  HOSTING_CRT0='-dynamic-linker /usr/libexec/ld.elf_so /usr/lib/crt0.o /usr/lib/crtbegin.o'
+  HOSTING_LIBS='`if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` -lc `if [ -f ../gcc/libgcc.a ] ; then echo ../gcc/libgcc.a ; else ${CC} -print-libgcc-file-name; fi` /usr/lib/crtend.o'
+  ;;
+
 alpha*-*-*)
   HOSTING_CRT0=/usr/ccs/lib/crt0.o
   NATIVE_LIB_DIRS=/usr/ccs/lib
index 08cf4ccb6f21182c58f9ad653759e8782c17b5a3..8416c89e11f17f64aa4751579e3b647e1682e08f 100644 (file)
@@ -4,7 +4,7 @@ OUTPUT_FORMAT="elf64-s390"
 TEXT_START_ADDR=0x80000000
 MAXPAGESIZE=0x1000
 NONPAGED_TEXT_START_ADDR=0x80000000
-ARCH="s390:esame"
+ARCH="s390:64-bit"
 MACHINE=
 NOP=0x07070707
 TEMPLATE_NAME=elf32
index 811add47516b22ced78f89edaa987d3e28172548..2804aceeb9b9ccf1d0cc42b57b235d44f93b6cdd 100644 (file)
@@ -3,7 +3,7 @@ OUTPUT_FORMAT="elf32-s390"
 TEXT_START_ADDR=0x00400000
 MAXPAGESIZE=0x1000
 NONPAGED_TEXT_START_ADDR=0x00400000
-ARCH=s390
+ARCH="s390:31-bit"
 MACHINE=
 NOP=0x07070707
 TEMPLATE_NAME=elf32
index 936bf39fb3399f8046a31b9e5cca55a3222c0d62..dee9874cc7d5d66c85abd46fc08f84131f7bda8c 100644 (file)
@@ -2277,7 +2277,7 @@ A couple of linker script commands deal with object file formats.
 @cindex output file format in linker script
 The @code{OUTPUT_FORMAT} command names the BFD format to use for the
 output file (@pxref{BFD}).  Using @code{OUTPUT_FORMAT(@var{bfdname})} is
-exactly like using @samp{-oformat @var{bfdname}} on the command line
+exactly like using @samp{--oformat @var{bfdname}} on the command line
 (@pxref{Options,,Command Line Options}).  If both are used, the command
 line option takes precedence.
 
index 5257547b95245426560d4a808ac68293d367a4cd..414a0340818eb16d05ea51025dbaaec1de54f6fc 100644 (file)
@@ -2914,6 +2914,8 @@ lang_size_sections (s, output_section_statement, prev, fill, dot, relax)
                       defined, issue a warning.  */
                    if ((bfd_get_section_flags (output_bfd, os->bfd_section)
                         & (SEC_ALLOC | SEC_LOAD)) != 0
+                       && (bfd_get_section_flags (output_bfd, os->bfd_section)
+                           & SEC_NEVER_LOAD) == 0
                        && ! link_info.relocateable
                        && strcmp (os->region->name, "*default*") == 0
                        && lang_memory_region_list != NULL