summary refs log tree commit diff
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2013-06-17 13:15:20 -0700
committerRoland McGrath <roland@hack.frob.com>2013-06-17 13:15:20 -0700
commita793aa6191ec6e1695137b99f015e4e08a87aeae (patch)
tree0a7fb5a4862252cbd3dd1649fe5c2f155dadfeaf
parent64dbb4e1c1f83872bfea14c3ce2dbe2d8ed30289 (diff)
downloadglibc-a793aa6191ec6e1695137b99f015e4e08a87aeae.tar.gz
glibc-a793aa6191ec6e1695137b99f015e4e08a87aeae.tar.xz
glibc-a793aa6191ec6e1695137b99f015e4e08a87aeae.zip
license exception text; use __builtin_trap
-rw-r--r--sysdeps/nacl/start.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sysdeps/nacl/start.c b/sysdeps/nacl/start.c
index cd1e652a87..ca58301583 100644
--- a/sysdeps/nacl/start.c
+++ b/sysdeps/nacl/start.c
@@ -7,6 +7,23 @@
    License as published by the Free Software Foundation; either
    version 2.1 of the License, or (at your option) any later version.
 
+   In addition to the permissions in the GNU Lesser General Public
+   License, the Free Software Foundation gives you unlimited
+   permission to link the compiled version of this file with other
+   programs, and to distribute those programs without any restriction
+   coming from the use of this file. (The GNU Lesser General Public
+   License restrictions do apply in other respects; for example, they
+   cover modification of the file, and distribution when not linked
+   into another program.)
+
+   Note that people who make modified versions of this file are not
+   obligated to grant this special exception for their modified
+   versions; it is their choice whether to do so. The GNU Lesser
+   General Public License gives permission to release a modified
+   version without this exception; this exception also makes it
+   possible to release a modified version which carries forward this
+   exception.
+
    The GNU C Library is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
@@ -52,5 +69,5 @@ _start (uint32_t info[])
 
   /* That should not return.  Make sure we crash if it did.  */
   while (1)
-    *(volatile int *) 0;
+    __builtin_trap ();
 }