diff --git a/config/path b/config/path index 161503f9f3..f50c2092f8 100644 --- a/config/path +++ b/config/path @@ -187,12 +187,6 @@ kernel_path() { ls -d $ROOT/$BUILD/linux* } -strip_libs() { - if [ "$DEBUG" = no ]; then - $STRIP `find $1 -name "*.so*"` - fi -} - require_glibc() { if [ "$TARGET_LIBC" != glibc ]; then echo "$1 requires glibc, aborting." diff --git a/packages/accessibility/atk/build b/packages/accessibility/atk/build index 709c7cd4c0..bac6064e6d 100755 --- a/packages/accessibility/atk/build +++ b/packages/accessibility/atk/build @@ -47,8 +47,7 @@ ac_cv_prog_F77=no ac_cv_prog_CXX=no ac_cv_path_PKG_CONFIG="$ROOT/$TOOLCHAIN/bin/ --disable-glibtest \ --enable-explicit-deps=no \ --disable-debug + $MAKE -$STRIP $1/.libs/libatk*.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/audio/alsa-lib/build b/packages/audio/alsa-lib/build index 5a31c0a434..4141a5190a 100755 --- a/packages/audio/alsa-lib/build +++ b/packages/audio/alsa-lib/build @@ -23,8 +23,6 @@ sed -i 's/.*PKGLIBDIR.*/#define PKGLIBDIR ""/' include/config.h $MAKE -$STRIP src/.libs/libasound.so* - $MAKE -C include DESTDIR=$SYSROOT_PREFIX install-data $MAKE -C src DESTDIR=$SYSROOT_PREFIX install-exec $MAKE -C utils DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA diff --git a/packages/audio/libogg/build b/packages/audio/libogg/build index e4dcf6bff0..72683176a4 100755 --- a/packages/audio/libogg/build +++ b/packages/audio/libogg/build @@ -14,6 +14,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libogg*.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/audio/libvorbis/build b/packages/audio/libvorbis/build index bfe2c14f92..98dab92c22 100755 --- a/packages/audio/libvorbis/build +++ b/packages/audio/libvorbis/build @@ -16,6 +16,4 @@ cd $PKG_BUILD $MAKE -$STRIP lib/.libs/libvorbis*.so* - $MAKEINSTALL diff --git a/packages/converters/libiconv/build b/packages/converters/libiconv/build index 50dd4eaa02..1e8e3d222e 100755 --- a/packages/converters/libiconv/build +++ b/packages/converters/libiconv/build @@ -17,6 +17,4 @@ cd $PKG_BUILD $MAKE -$STRIP lib/.libs/*.so* - $MAKEINSTALL diff --git a/packages/databases/sqlite/build b/packages/databases/sqlite/build index 67167227cb..fa93d0ea7e 100755 --- a/packages/databases/sqlite/build +++ b/packages/databases/sqlite/build @@ -24,7 +24,6 @@ cd $PKG_BUILD make -$STRIP .libs/*.so* $STRIP .libs/sqlite3 $MAKEINSTALL \ No newline at end of file diff --git a/packages/devel/dbus-glib/build b/packages/devel/dbus-glib/build index 658fed4ed1..183b0a853e 100755 --- a/packages/devel/dbus-glib/build +++ b/packages/devel/dbus-glib/build @@ -26,8 +26,6 @@ have_abstract_sockets=yes \ make -C dbus SUBDIRS="." -$STRIP dbus/.libs/*.so* - make -C dbus DESTDIR=$SYSROOT_PREFIX install-libdbus_glibHEADERS make -C dbus DESTDIR=$SYSROOT_PREFIX install-libLTLIBRARIES make DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA diff --git a/packages/devel/dbus/build b/packages/devel/dbus/build index ea2365c095..aab2e0acd6 100755 --- a/packages/devel/dbus/build +++ b/packages/devel/dbus/build @@ -43,8 +43,6 @@ cd $PKG_BUILD make -$STRIP dbus/.libs/libdbus-1.so* - make -C dbus DESTDIR=$SYSROOT_PREFIX install make DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA diff --git a/packages/devel/gdb/build b/packages/devel/gdb/build index cc9d432a02..c0f2ee347f 100755 --- a/packages/devel/gdb/build +++ b/packages/devel/gdb/build @@ -12,8 +12,10 @@ export CC_FOR_BUILD="$HOST_CC" export CFLAGS_FOR_BUILD="$HOST_CFLAGS" cd $PKG_BUILD + mkdir -p objdir cd objdir + ../configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --with-sysroot=$SYSROOT_PREFIX \ diff --git a/packages/devel/gettext-dummy/build b/packages/devel/gettext-dummy/build index 14f47ecfa5..b64309e459 100755 --- a/packages/devel/gettext-dummy/build +++ b/packages/devel/gettext-dummy/build @@ -16,6 +16,4 @@ cd $PKG_BUILD/ make -$STRIP .libs/libintl*.so* - $MAKEINSTALL diff --git a/packages/devel/glib/build b/packages/devel/glib/build index 672c93fd6c..cbbb858a0f 100755 --- a/packages/devel/glib/build +++ b/packages/devel/glib/build @@ -31,8 +31,6 @@ cd .build-target make -$STRIP `find . -name *.so*` - make DESTDIR=$SYSROOT_PREFIX install cp g*-2.0.pc $SYSROOT_PREFIX/usr/lib/pkgconfig diff --git a/packages/devel/libffi/build b/packages/devel/libffi/build index 16ca98656d..f4aac6e467 100755 --- a/packages/devel/libffi/build +++ b/packages/devel/libffi/build @@ -14,6 +14,4 @@ cd $PKG_BUILD make -$STRIP .libs/*.so* - $MAKEINSTALL diff --git a/packages/devel/liboil/build b/packages/devel/liboil/build index d6991ae925..941c7623b0 100755 --- a/packages/devel/liboil/build +++ b/packages/devel/liboil/build @@ -15,6 +15,4 @@ cd $PKG_BUILD $MAKE -#$STRIP liboil/.libs/liboil-*.so* - $MAKEINSTALL diff --git a/packages/emulators/SDL/build b/packages/emulators/SDL/build index a991349558..042089dba4 100755 --- a/packages/emulators/SDL/build +++ b/packages/emulators/SDL/build @@ -91,8 +91,6 @@ cd $PKG_BUILD make -$STRIP build/.libs/*.so* - $MAKEINSTALL mv $SYSROOT_PREFIX/usr/bin/sdl-config $ROOT/$TOOLCHAIN/bin diff --git a/packages/emulators/SDL_image/build b/packages/emulators/SDL_image/build index 2140b970a1..48b09efa55 100755 --- a/packages/emulators/SDL_image/build +++ b/packages/emulators/SDL_image/build @@ -35,6 +35,4 @@ cd $PKG_BUILD make -$STRIP .libs/*.so* - $MAKEINSTALL diff --git a/packages/emulators/SDL_mixer/build b/packages/emulators/SDL_mixer/build index 530349fa7a..e2e908e33d 100755 --- a/packages/emulators/SDL_mixer/build +++ b/packages/emulators/SDL_mixer/build @@ -29,6 +29,4 @@ cd $PKG_BUILD make -$STRIP build/.libs/*.so* - $MAKEINSTALL diff --git a/packages/emulators/SDL_net/build b/packages/emulators/SDL_net/build index 07b75e6892..7f66d54765 100755 --- a/packages/emulators/SDL_net/build +++ b/packages/emulators/SDL_net/build @@ -16,6 +16,4 @@ cd $PKG_BUILD make -$STRIP .libs/*.so* - $MAKEINSTALL diff --git a/packages/emulators/SDL_ttf/build b/packages/emulators/SDL_ttf/build index 07b75e6892..7f66d54765 100755 --- a/packages/emulators/SDL_ttf/build +++ b/packages/emulators/SDL_ttf/build @@ -16,6 +16,4 @@ cd $PKG_BUILD make -$STRIP .libs/*.so* - $MAKEINSTALL diff --git a/packages/games/openal-soft/build b/packages/games/openal-soft/build index 25c5f894d3..f263afee9e 100755 --- a/packages/games/openal-soft/build +++ b/packages/games/openal-soft/build @@ -14,6 +14,4 @@ cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \ make -$STRIP *.so* - $MAKEINSTALL diff --git a/packages/games/physfs/build b/packages/games/physfs/build index 25c5f894d3..f263afee9e 100755 --- a/packages/games/physfs/build +++ b/packages/games/physfs/build @@ -14,6 +14,4 @@ cmake -D CMAKE_INSTALL_PREFIX:PATH=/usr \ make -$STRIP *.so* - $MAKEINSTALL diff --git a/packages/graphics/Mesa-openchrome/build b/packages/graphics/Mesa-openchrome/build index 685bfc4883..a056fe540b 100755 --- a/packages/graphics/Mesa-openchrome/build +++ b/packages/graphics/Mesa-openchrome/build @@ -47,15 +47,6 @@ make make -C progs/xdemos -# strip libmesa -#$STRIP src/mesa/libmesa.so* - -# strip libglapi -#$STRIP src/mesa/libglapi.so* - -# strip DRI drivers -$STRIP lib*/*.so* - ## copy GLX headers for xorg-server to build #cp -PR include/* $LIB_PREFIX/include diff --git a/packages/graphics/Mesa/build b/packages/graphics/Mesa/build index a1c31cfc5a..61fcc437d5 100755 --- a/packages/graphics/Mesa/build +++ b/packages/graphics/Mesa/build @@ -45,15 +45,6 @@ DRI_DRIVER_SEARCH_DIR="$XORG_PATH_DRI" \ make -# strip libmesa -#$STRIP src/mesa/libmesa.so* - -# strip libglapi -#$STRIP src/mesa/libglapi.so* - -# strip DRI drivers -$STRIP lib*/*.so* - ## copy GLX headers for xorg-server to build #cp -PR include/* $LIB_PREFIX/include diff --git a/packages/graphics/cairo/build b/packages/graphics/cairo/build index cd45428dc0..e74010fba4 100755 --- a/packages/graphics/cairo/build +++ b/packages/graphics/cairo/build @@ -28,6 +28,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/libcairo.so* - $MAKEINSTALL diff --git a/packages/graphics/jpeg/build b/packages/graphics/jpeg/build index 07fd477d2d..e5196e0b77 100755 --- a/packages/graphics/jpeg/build +++ b/packages/graphics/jpeg/build @@ -15,6 +15,4 @@ cd $PKG_BUILD $MAKE -$STRIP .libs/*.so* - $MAKE prefix=$SYSROOT_PREFIX/usr install-lib diff --git a/packages/graphics/libdrm-newttm/build b/packages/graphics/libdrm-newttm/build index 5c47456912..d35acce389 100755 --- a/packages/graphics/libdrm-newttm/build +++ b/packages/graphics/libdrm-newttm/build @@ -20,8 +20,4 @@ cd $PKG_BUILD $MAKE $MAKE -C linux-core LINUXDIR=$(kernel_path) DRM_MODULES=openchrome - -$STRIP libdrm/.libs/libdrm.so* -#$STRIP libdrm/intel/.libs/libdrm_intel.so* - $MAKEINSTALL diff --git a/packages/graphics/libdrm/build b/packages/graphics/libdrm/build index fbbe9b2d78..9126f7d05c 100755 --- a/packages/graphics/libdrm/build +++ b/packages/graphics/libdrm/build @@ -22,9 +22,4 @@ cd $PKG_BUILD $MAKE -$STRIP libdrm/.libs/libdrm.so* -$STRIP libdrm/intel/.libs/*.so* -$STRIP libdrm/nouveau/.libs/*.so* -$STRIP libdrm/radeon/.libs/*.so* - $MAKEINSTALL diff --git a/packages/graphics/libdrm/patches/nouveau-updates.diff b/packages/graphics/libdrm/patches/nouveau-updates.diff deleted file mode 100644 index 606b3df898..0000000000 --- a/packages/graphics/libdrm/patches/nouveau-updates.diff +++ /dev/null @@ -1,26 +0,0 @@ -diff --git a/libdrm/nouveau/nouveau_bo.c b/libdrm/nouveau/nouveau_bo.c -index 023c6be..66466e3 100644 ---- a/libdrm/nouveau/nouveau_bo.c -+++ b/libdrm/nouveau/nouveau_bo.c -@@ -404,7 +404,8 @@ nouveau_bo_handle_ref(struct nouveau_device *dev, uint32_t handle, - nvbo->size = req.size; - nvbo->handle = req.handle; - } -- -+ -+ nvbo->base.handle = nvbo->handle; - return 0; - } - -diff --git a/libdrm/nouveau/nouveau_dma.c b/libdrm/nouveau/nouveau_dma.c -index 23da64b..b084f70 100644 ---- a/libdrm/nouveau/nouveau_dma.c -+++ b/libdrm/nouveau/nouveau_dma.c -@@ -41,6 +41,7 @@ WRITE_PUT(struct nouveau_channel_priv *nvchan, uint32_t val) - volatile int dum; - - NOUVEAU_DMA_BARRIER; -+ dum = nvchan->pushbuf[0]; - dum = READ_GET(nvchan); - - *nvchan->put = put; diff --git a/packages/graphics/libexif/build b/packages/graphics/libexif/build index 3f319eadd5..1929b90848 100755 --- a/packages/graphics/libexif/build +++ b/packages/graphics/libexif/build @@ -16,7 +16,5 @@ cd $PKG_BUILD make -C libexif -$STRIP libexif/.libs/*.so* - $MAKEINSTALL -C libexif diff --git a/packages/graphics/libpng/build b/packages/graphics/libpng/build index 72495965cb..3e07a23910 100755 --- a/packages/graphics/libpng/build +++ b/packages/graphics/libpng/build @@ -16,8 +16,6 @@ ac_cv_lib_z_zlibVersion=yes \ $MAKE -$STRIP .libs/libpng12.so* - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/graphics/tiff/build b/packages/graphics/tiff/build index 6d9a8903e0..aec090104f 100755 --- a/packages/graphics/tiff/build +++ b/packages/graphics/tiff/build @@ -22,6 +22,4 @@ cd $PKG_BUILD make -$STRIP libtiff/.libs/*.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/lang/Python/build b/packages/lang/Python/build index 5eda227fce..8b024bcc80 100755 --- a/packages/lang/Python/build +++ b/packages/lang/Python/build @@ -85,6 +85,5 @@ make CC=$TARGET_CC \ install $STRIP python -$STRIP build/lib*/*.so $ROOT/$TOOLCHAIN/bin/python -Wi -t Lib/compileall.py -f -x test ./Lib diff --git a/packages/multimedia/gst-ffmpeg/build b/packages/multimedia/gst-ffmpeg/build index 67ee123d4b..6d50cfc3c7 100755 --- a/packages/multimedia/gst-ffmpeg/build +++ b/packages/multimedia/gst-ffmpeg/build @@ -29,6 +29,4 @@ cd $PKG_BUILD make -$STRIP `find ext gst gst-libs sys -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/gst-plugins-bad/build b/packages/multimedia/gst-plugins-bad/build index 9cf4d78d0c..1bf38f47e4 100755 --- a/packages/multimedia/gst-plugins-bad/build +++ b/packages/multimedia/gst-plugins-bad/build @@ -122,6 +122,4 @@ ac_cv_lib_xvidcore_xvid_global=yes \ make -$STRIP `find ext gst sys -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/gst-plugins-base/build b/packages/multimedia/gst-plugins-base/build index 2c28067dfd..a3b7fbecf2 100755 --- a/packages/multimedia/gst-plugins-base/build +++ b/packages/multimedia/gst-plugins-base/build @@ -58,6 +58,4 @@ cd $PKG_BUILD make -$STRIP `find ext gst gst-libs sys -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/gst-plugins-good/build b/packages/multimedia/gst-plugins-good/build index 0285829cce..0c0da24c40 100755 --- a/packages/multimedia/gst-plugins-good/build +++ b/packages/multimedia/gst-plugins-good/build @@ -113,6 +113,4 @@ cd $PKG_BUILD make -$STRIP `find ext gst gst-libs sys -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/gst-plugins-ugly/build b/packages/multimedia/gst-plugins-ugly/build index 0d806dd032..47dd713817 100755 --- a/packages/multimedia/gst-plugins-ugly/build +++ b/packages/multimedia/gst-plugins-ugly/build @@ -53,6 +53,4 @@ cd $PKG_BUILD make -$STRIP `find ext gst -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/gst-rtsp/build b/packages/multimedia/gst-rtsp/build index 9ca75993b5..05da6fc8f7 100755 --- a/packages/multimedia/gst-rtsp/build +++ b/packages/multimedia/gst-rtsp/build @@ -18,7 +18,4 @@ cd $PKG_BUILD make -$STRIP gst/rtsp-server/.libs/*.so* -$STRIP bindings/python/.libs/*.so - $MAKEINSTALL diff --git a/packages/multimedia/gstreamer/build b/packages/multimedia/gstreamer/build index 85969fc21f..b6a7e64fd0 100755 --- a/packages/multimedia/gstreamer/build +++ b/packages/multimedia/gstreamer/build @@ -23,10 +23,4 @@ cd $PKG_BUILD make -$STRIP gst/.libs/*.so* -$STRIP libs/gst/*/.libs/*.so* -$STRIP plugins/*/.libs/*.so - -#$STRIP `find gst libs plugins -name *.so*` - $MAKEINSTALL diff --git a/packages/multimedia/libdv/build b/packages/multimedia/libdv/build index ebcfaf57fe..49ea86f820 100755 --- a/packages/multimedia/libdv/build +++ b/packages/multimedia/libdv/build @@ -19,6 +19,4 @@ $HOST_CC -o libdv/host-gasmoff libdv/gasmoff.c make GASMOFF=host-gasmoff -$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/multimedia/libdvdcss/build b/packages/multimedia/libdvdcss/build index 85fbf05d19..0e27feb2ee 100755 --- a/packages/multimedia/libdvdcss/build +++ b/packages/multimedia/libdvdcss/build @@ -14,6 +14,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/libdvdcss.so* - $MAKEINSTALL diff --git a/packages/multimedia/libdvdnav/build b/packages/multimedia/libdvdnav/build index ef1d4fe878..7b615425d4 100755 --- a/packages/multimedia/libdvdnav/build +++ b/packages/multimedia/libdvdnav/build @@ -18,8 +18,6 @@ cd $PKG_BUILD make -#$STRIP obj/$1.so - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/multimedia/libdvdread/build b/packages/multimedia/libdvdread/build index ae2800b174..14f2bbcd73 100755 --- a/packages/multimedia/libdvdread/build +++ b/packages/multimedia/libdvdread/build @@ -18,8 +18,6 @@ cd $PKG_BUILD make -#$STRIP obj/$1.so - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/multimedia/libmpeg2/build b/packages/multimedia/libmpeg2/build index 2fc9d3615c..70abb4d248 100755 --- a/packages/multimedia/libmpeg2/build +++ b/packages/multimedia/libmpeg2/build @@ -15,6 +15,4 @@ cd $PKG_BUILD make -#$STRIP libmpeg2/.libs/*.so* - $MAKEINSTALL diff --git a/packages/multimedia/libtheora/build b/packages/multimedia/libtheora/build index cfef6cb302..b5bdaefa46 100755 --- a/packages/multimedia/libtheora/build +++ b/packages/multimedia/libtheora/build @@ -27,6 +27,4 @@ cd $PKG_BUILD make -#$STRIP lib/.libs/*.so* - $MAKEINSTALL diff --git a/packages/multimedia/pigment/build b/packages/multimedia/pigment/build index 26138d0a7e..c87ab006f7 100755 --- a/packages/multimedia/pigment/build +++ b/packages/multimedia/pigment/build @@ -32,9 +32,4 @@ cd $PKG_BUILD make -$STRIP pgm/.libs/libpigment*.so* -$STRIP pgm/gtk/.libs/libpigment-gtk*.so* -$STRIP pgm/imaging/.libs/libpigment-imaging*.so* -$STRIP plugins/*/.libs/libpgm*.so - $MAKEINSTALL diff --git a/packages/multimedia/swfdec/build b/packages/multimedia/swfdec/build index 56d0e8b331..dd6a9a2485 100755 --- a/packages/multimedia/swfdec/build +++ b/packages/multimedia/swfdec/build @@ -18,8 +18,6 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL cp -PR data/swfdec.pc $SYSROOT_PREFIX/usr/lib/pkgconfig diff --git a/packages/multimedia/x264/build b/packages/multimedia/x264/build index 8f43d82af0..aceea34ba0 100755 --- a/packages/multimedia/x264/build +++ b/packages/multimedia/x264/build @@ -13,6 +13,4 @@ cd $PKG_BUILD --disable-asm make -$STRIP - $MAKEINSTALL diff --git a/packages/multimedia/xvidcore/build b/packages/multimedia/xvidcore/build index bbe6cde964..10b985029e 100755 --- a/packages/multimedia/xvidcore/build +++ b/packages/multimedia/xvidcore/build @@ -14,6 +14,4 @@ cd $BUILD/$1*/build/generic make -#$STRIP ./\=build/*.so* - $MAKEINSTALL diff --git a/packages/network/avahi/build b/packages/network/avahi/build index c1796a0197..910b424e37 100755 --- a/packages/network/avahi/build +++ b/packages/network/avahi/build @@ -70,8 +70,6 @@ py_cv_mod_dbus_=yes \ make -#$STRIP plugins/.libs/*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py avahi-python/avahi diff --git a/packages/network/connman/build b/packages/network/connman/build index 86449c962a..cd947c2770 100755 --- a/packages/network/connman/build +++ b/packages/network/connman/build @@ -40,5 +40,3 @@ cd $PKG_BUILD --with-udhcpc=/sbin/udhcpc \ make - -$STRIP plugins/.libs/*.so diff --git a/packages/network/libproxy/build b/packages/network/libproxy/build index 9c82417622..ab0c0b54a4 100755 --- a/packages/network/libproxy/build +++ b/packages/network/libproxy/build @@ -16,8 +16,4 @@ ac_cv_func_malloc_0_nonnull=yes \ make -$STRIP src/bin/.libs/proxy -$STRIP src/lib/.libs/*.so* -$STRIP src/plugins/.libs/*.so* - $MAKEINSTALL diff --git a/packages/network/libsoup.old/build b/packages/network/libsoup.old/build index fd6797e052..85c4e4269e 100755 --- a/packages/network/libsoup.old/build +++ b/packages/network/libsoup.old/build @@ -26,6 +26,4 @@ soup_cv_ipv6="no" \ make -$STRIP $1/.libs/*.so* - $MAKEINSTALL diff --git a/packages/network/libsoup/build b/packages/network/libsoup/build index 13e93019de..764ec7a6a9 100755 --- a/packages/network/libsoup/build +++ b/packages/network/libsoup/build @@ -26,8 +26,6 @@ soup_cv_ipv6="no" \ make -$STRIP $1/.libs/*.so* - $MAKEINSTALL -C libsoup cp -PR libsoup-2.4.pc $SYSROOT_PREFIX/usr/lib/pkgconfig diff --git a/packages/other/bzip2/build b/packages/other/bzip2/build index 6074078973..7c2f7e4955 100755 --- a/packages/other/bzip2/build +++ b/packages/other/bzip2/build @@ -16,8 +16,6 @@ cd $PKG_BUILD make CC=$TARGET_CC RANLIB=$TARGET_RANLIB AR=$TARGET_AR libbz2.a #ln -snf libbz2.so.1.0 libbz2.so -#$STRIP *.so* - mkdir -p $SYSROOT_PREFIX/usr/include cp bzlib.h $SYSROOT_PREFIX/usr/include diff --git a/packages/other/clutter-cairo/build b/packages/other/clutter-cairo/build deleted file mode 100755 index dedc6a0a6a..0000000000 --- a/packages/other/clutter-cairo/build +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build clutter -$SCRIPTS/build cairo - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ -# --disable-gtk-doc \ -# --disable-examples \ -# --with-imagebackend=gdk-pixbuf \ -# --with-flavour=glx \ -# --with-x - -make - -$STRIP .libs/*.so* - -$MAKEINSTALL diff --git a/packages/other/clutter-cairo/install b/packages/other/clutter-cairo/install deleted file mode 100755 index 76a0e6644d..0000000000 --- a/packages/other/clutter-cairo/install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install clutter -$SCRIPTS/install cairo - -mkdir -p $INSTALL/usr/lib -cp -PR $PKG_BUILD/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-cairo/url b/packages/other/clutter-cairo/url deleted file mode 100644 index e97792dd7d..0000000000 --- a/packages/other/clutter-cairo/url +++ /dev/null @@ -1 +0,0 @@ -http://www.clutter-project.org/sources/clutter-cairo/0.8/clutter-cairo-0.8.2.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter-gst/build b/packages/other/clutter-gst/build deleted file mode 100755 index 0dbb9c86d0..0000000000 --- a/packages/other/clutter-gst/build +++ /dev/null @@ -1,22 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build clutter -$SCRIPTS/build gstreamer -$SCRIPTS/build gst-plugins-base - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ - -make - -$STRIP clutter-gst/.libs/*.so* - -$MAKEINSTALL diff --git a/packages/other/clutter-gst/install b/packages/other/clutter-gst/install deleted file mode 100755 index bdccc9ac72..0000000000 --- a/packages/other/clutter-gst/install +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install clutter -$SCRIPTS/install gstreamer -$SCRIPTS/install gst-plugins-base - -mkdir -p $INSTALL/usr/lib -cp -PR $PKG_BUILD/clutter-gst/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-gst/url b/packages/other/clutter-gst/url deleted file mode 100644 index feaa6a73c5..0000000000 --- a/packages/other/clutter-gst/url +++ /dev/null @@ -1 +0,0 @@ -http://www.clutter-project.org/sources/clutter-gst/0.8/clutter-gst-0.8.0.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter-gtk/build b/packages/other/clutter-gtk/build deleted file mode 100755 index 926e6697d6..0000000000 --- a/packages/other/clutter-gtk/build +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build clutter -$SCRIPTS/build gtk+ - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ -# --disable-gtk-doc \ -# --disable-examples \ -# --with-imagebackend=gdk-pixbuf \ -# --with-flavour=glx \ -# --with-x - -make - -$STRIP clutter-gtk/.libs/*.so* - -$MAKEINSTALL diff --git a/packages/other/clutter-gtk/install b/packages/other/clutter-gtk/install deleted file mode 100755 index ac493483b8..0000000000 --- a/packages/other/clutter-gtk/install +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install clutter -$SCRIPTS/install gtk+ - -mkdir -p $INSTALL/usr/lib -cp -PR $PKG_BUILD/clutter-gtk/.libs/*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter-gtk/url b/packages/other/clutter-gtk/url deleted file mode 100644 index f55d63f1ad..0000000000 --- a/packages/other/clutter-gtk/url +++ /dev/null @@ -1 +0,0 @@ -http://www.clutter-project.org/sources/clutter-gtk/0.8/clutter-gtk-0.8.3.tar.bz2 \ No newline at end of file diff --git a/packages/other/clutter/build b/packages/other/clutter/build deleted file mode 100755 index 328c5163a6..0000000000 --- a/packages/other/clutter/build +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build $MESA -$SCRIPTS/build pango -$SCRIPTS/build cairo -#$SCRIPTS/build gstreamer -#$SCRIPTS/build gst-plugins-base -$SCRIPTS/build libX11 -$SCRIPTS/build libXcomposite -$SCRIPTS/build libXdamage -$SCRIPTS/build libXi -$SCRIPTS/build glib -$SCRIPTS/build gtk+ - -cd $PKG_BUILD -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ -# --disable-gtk-doc \ -# --disable-examples \ -# --with-imagebackend=gdk-pixbuf \ -# --with-flavour=glx \ -# --with-x - -make - -$STRIP clutter/.libs/libclutter-glx*.so* - -$MAKEINSTALL diff --git a/packages/other/clutter/install b/packages/other/clutter/install deleted file mode 100755 index 12bd608ad3..0000000000 --- a/packages/other/clutter/install +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install $MESA -$SCRIPTS/install pango -$SCRIPTS/install cairo -$SCRIPTS/install libX11 -$SCRIPTS/install libXcomposite -$SCRIPTS/install libXdamage -$SCRIPTS/install libXfixes -$SCRIPTS/install libXi -$SCRIPTS/install glib -$SCRIPTS/install gtk+ - -mkdir -p $INSTALL/usr/lib -cp -PR $PKG_BUILD/clutter/.libs/libclutter-glx*.so* $INSTALL/usr/lib diff --git a/packages/other/clutter/url b/packages/other/clutter/url deleted file mode 100644 index 6ddb80495c..0000000000 --- a/packages/other/clutter/url +++ /dev/null @@ -1 +0,0 @@ -http://www.clutter-project.org/sources/clutter/0.8/clutter-0.8.8.tar.bz2 diff --git a/packages/other/libdaemon/build b/packages/other/libdaemon/build index a29de0748f..8547c8b3f5 100755 --- a/packages/other/libdaemon/build +++ b/packages/other/libdaemon/build @@ -16,6 +16,4 @@ ac_cv_func_setpgrp_void=no \ make -$STRIP $1/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/libgee/build b/packages/other/libgee/build index ff6db7dab2..f4aac6e467 100755 --- a/packages/other/libgee/build +++ b/packages/other/libgee/build @@ -14,6 +14,4 @@ cd $PKG_BUILD make -$STRIP gee/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/libgpod/build b/packages/other/libgpod/build index 1c180b73a6..5f454503fd 100755 --- a/packages/other/libgpod/build +++ b/packages/other/libgpod/build @@ -27,9 +27,6 @@ cd $PKG_BUILD make -$STRIP src/.libs/*.so* -$STRIP bindings/python/.libs/*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py bindings/python diff --git a/packages/other/libiec61883/build b/packages/other/libiec61883/build index 347824bce8..4ecb4838ec 100755 --- a/packages/other/libiec61883/build +++ b/packages/other/libiec61883/build @@ -15,6 +15,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/libraw1394/build b/packages/other/libraw1394/build index 7ab3236be3..0e27feb2ee 100755 --- a/packages/other/libraw1394/build +++ b/packages/other/libraw1394/build @@ -14,6 +14,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/libtasn1/build b/packages/other/libtasn1/build index 0e8f4a7e38..0e27feb2ee 100755 --- a/packages/other/libtasn1/build +++ b/packages/other/libtasn1/build @@ -14,6 +14,4 @@ cd $PKG_BUILD make -#$STRIP $1/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/libwsbm/build b/packages/other/libwsbm/build index 56f424a122..9036203543 100755 --- a/packages/other/libwsbm/build +++ b/packages/other/libwsbm/build @@ -15,6 +15,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/other/zlib/build b/packages/other/zlib/build index 9c131da5ca..b645ddacff 100755 --- a/packages/other/zlib/build +++ b/packages/other/zlib/build @@ -9,6 +9,4 @@ cd $PKG_BUILD make -$STRIP *.so* - $MAKE prefix=$SYSROOT_PREFIX/usr install diff --git a/packages/print/freetype/build b/packages/print/freetype/build index ddd224845d..73a8a4bd37 100755 --- a/packages/print/freetype/build +++ b/packages/print/freetype/build @@ -17,8 +17,6 @@ cd $PKG_BUILD make -$STRIP objs/.libs/libfreetype.so* - make DESTDIR=$SYSROOT_PREFIX install $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/python/devel/pygobject/build b/packages/python/devel/pygobject/build index 68944afd59..c767087991 100755 --- a/packages/python/devel/pygobject/build +++ b/packages/python/devel/pygobject/build @@ -20,12 +20,6 @@ cd $PKG_BUILD make -$STRIP glib/.libs/libpyglib*.so* -$STRIP gobject/.libs/*.so -$STRIP glib/.libs/_glib.so -$STRIP gio/.libs/_gio.so -$STRIP gio/.libs/unix.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py . diff --git a/packages/python/graphics/pycairo/build b/packages/python/graphics/pycairo/build index 088b27633d..db4e54c8b8 100755 --- a/packages/python/graphics/pycairo/build +++ b/packages/python/graphics/pycairo/build @@ -19,8 +19,6 @@ cd $PKG_BUILD make -$STRIP cairo/.libs/*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py cairo diff --git a/packages/python/multimedia/entertainer/build b/packages/python/multimedia/entertainer/build deleted file mode 100755 index d070020f36..0000000000 --- a/packages/python/multimedia/entertainer/build +++ /dev/null @@ -1,27 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build Python -$SCRIPTS/build pyclutter -$SCRIPTS/build setuptools - -. config/options.python - -PYTHON_LIB_DIR=`ls -d $SYSROOT_PREFIX/usr/lib/python*` - -cd $PKG_BUILD - -# dirty hack for not existing file -touch docs/LICENSE - -$PYTHON setup.py build -$PYTHON setup.py install -O1 --skip-build --prefix /usr --root .install - -sed -i -e "s%$ROOT/$TOOLCHAIN%/usr%" .install/usr/bin/* - -find .install -name "*.py" -type f -exec rm -rf "{}" ";" -find .install -name "*.pyo" -type f -exec rm -rf "{}" ";" - -rm -rf .install/usr/share/{applications,entertainer/docs,man} diff --git a/packages/python/multimedia/entertainer/install b/packages/python/multimedia/entertainer/install deleted file mode 100755 index 09dc24c419..0000000000 --- a/packages/python/multimedia/entertainer/install +++ /dev/null @@ -1,26 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install Python -$SCRIPTS/install pyclutter -$SCRIPTS/install pygtk -$SCRIPTS/install pygobject -$SCRIPTS/install pycairo - -$SCRIPTS/install gst-python -$SCRIPTS/install TwistedCore -$SCRIPTS/install pysqlite -$SCRIPTS/install Imaging -$SCRIPTS/install CDDB -$SCRIPTS/install eyeD3 -$SCRIPTS/install feedparser -$SCRIPTS/install IMDbPY -$SCRIPTS/install pyvorbis - -PKG_DIR=`find $PACKAGES -type d -name $1` - -cp -PR $PKG_BUILD/.install/* $INSTALL - -mkdir -p $INSTALL/etc/X11/xinit/xinitrc.d -cp -PR $PKG_DIR/scripts/xinitrc.d/* $INSTALL/etc/X11/xinit/xinitrc.d diff --git a/packages/python/multimedia/entertainer/scripts/xinitrc.d/99_entertainer b/packages/python/multimedia/entertainer/scripts/xinitrc.d/99_entertainer deleted file mode 100644 index 4925d9db2f..0000000000 --- a/packages/python/multimedia/entertainer/scripts/xinitrc.d/99_entertainer +++ /dev/null @@ -1,17 +0,0 @@ -################################################################################ -# Start entertainer. -# -# The entertainer program (not the window manager) is the application that runs in the -# foreground because it is the only application that we can be sure will be -# running. -################################################################################ - -. /etc/sysconfig - -args="" - -if /usr/bin/test "${DEBUG}" = "yes" ; then - /usr/bin/entertainer 2> $LOGFILE -else - /usr/bin/entertainer > /dev/null 2>&1 -fi \ No newline at end of file diff --git a/packages/python/multimedia/entertainer/url b/packages/python/multimedia/entertainer/url deleted file mode 100644 index ecea7259ea..0000000000 --- a/packages/python/multimedia/entertainer/url +++ /dev/null @@ -1 +0,0 @@ -http://sources.openelec.tv/svn/entertainer-lp-20090401.tar.bz2 diff --git a/packages/python/multimedia/gst-python/build b/packages/python/multimedia/gst-python/build index 87c474db07..83a16fba76 100755 --- a/packages/python/multimedia/gst-python/build +++ b/packages/python/multimedia/gst-python/build @@ -24,8 +24,6 @@ ac_cv_path_PYGTK_CODEGEN=`ls -d $ROOT/$BUILD/pygtk*/codegen/pygtk-codegen-2.0` \ make -$STRIP gst/.libs/*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py . diff --git a/packages/python/multimedia/pigment-python/build b/packages/python/multimedia/pigment-python/build index 2e93bcb0ba..dc0d43b958 100755 --- a/packages/python/multimedia/pigment-python/build +++ b/packages/python/multimedia/pigment-python/build @@ -20,8 +20,6 @@ cd $PKG_BUILD make -$STRIP pgm/.libs/_pgm*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py pgm diff --git a/packages/python/multimedia/pyclutter/build b/packages/python/multimedia/pyclutter/build deleted file mode 100755 index df6c3c1ec9..0000000000 --- a/packages/python/multimedia/pyclutter/build +++ /dev/null @@ -1,41 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/build toolchain -$SCRIPTS/build Python -$SCRIPTS/build pygtk -$SCRIPTS/build pygobject -$SCRIPTS/build gst-python -$SCRIPTS/build clutter -$SCRIPTS/build clutter-gst -$SCRIPTS/build clutter-gtk -$SCRIPTS/build clutter-cairo - -. config/options.python - -cd $PKG_BUILD -#ac_cv_path_PYGTK_CODEGEN=`ls -d $ROOT/$BUILD/pygtk*/codegen/pygtk-codegen-2.0` \ -./configure --host=$TARGET_NAME \ - --build=$HOST_NAME \ - --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static \ - --enable-shared \ - --with-cluttergst=yes \ - --with-cluttergtk=yes \ - --with-cluttercairo=yes \ - -make - -$STRIP clutter/.libs/*.so -$STRIP clutter-cairo/.libs/*.so -$STRIP clutter-gst/.libs/*.so -$STRIP clutter-gtk/.libs/*.so - -$MAKEINSTALL - -$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter -$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-cairo -$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-gst -$PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py clutter-gtk diff --git a/packages/python/multimedia/pyclutter/install b/packages/python/multimedia/pyclutter/install deleted file mode 100755 index 71941ffa2d..0000000000 --- a/packages/python/multimedia/pyclutter/install +++ /dev/null @@ -1,33 +0,0 @@ -#!/bin/sh - -. config/options - -$SCRIPTS/install Python -$SCRIPTS/install pygtk -$SCRIPTS/install pygobject -$SCRIPTS/install gst-python -$SCRIPTS/install clutter -$SCRIPTS/install clutter-gst -$SCRIPTS/install clutter-gtk -$SCRIPTS/install clutter-cairo - -PYTHON_LIB_DIR=`ls -d $INSTALL/usr/lib/python*` - -mkdir -p $PYTHON_LIB_DIR/site-packages/clutter -cp $PKG_BUILD/clutter/.libs/*.so $PYTHON_LIB_DIR/site-packages/clutter -cp $PKG_BUILD/clutter/*.pyc $PYTHON_LIB_DIR/site-packages/clutter - -mkdir -p $INSTALL/usr/share/pyclutter/1.0/defs -cp $PKG_BUILD/clutter/*.defs $INSTALL/usr/share/pyclutter/1.0/defs - -mkdir -p $PYTHON_LIB_DIR/site-packages/cluttercairo -cp $PKG_BUILD/clutter-cairo/.libs/*.so $PYTHON_LIB_DIR/site-packages/cluttercairo -cp $PKG_BUILD/clutter-cairo/*.pyc $PYTHON_LIB_DIR/site-packages/cluttercairo - -mkdir -p $PYTHON_LIB_DIR/site-packages/cluttergst -cp $PKG_BUILD/clutter-gst/.libs/*.so $PYTHON_LIB_DIR/site-packages/cluttergst -cp $PKG_BUILD/clutter-gst/*.pyc $PYTHON_LIB_DIR/site-packages/cluttergst - -mkdir -p $PYTHON_LIB_DIR/site-packages/cluttergtk -cp $PKG_BUILD/clutter-gtk/.libs/*.so $PYTHON_LIB_DIR/site-packages/cluttergtk -cp $PKG_BUILD/clutter-gtk/*.pyc $PYTHON_LIB_DIR/site-packages/cluttergtk diff --git a/packages/python/multimedia/pyclutter/url b/packages/python/multimedia/pyclutter/url deleted file mode 100644 index ce671c9ae6..0000000000 --- a/packages/python/multimedia/pyclutter/url +++ /dev/null @@ -1 +0,0 @@ -http://www.clutter-project.org/sources/pyclutter/0.8/pyclutter-0.8.2.tar.bz2 \ No newline at end of file diff --git a/packages/python/sysutils/dbus-python/build b/packages/python/sysutils/dbus-python/build index 294bc2cd36..c322615c39 100755 --- a/packages/python/sysutils/dbus-python/build +++ b/packages/python/sysutils/dbus-python/build @@ -20,9 +20,6 @@ cd $PKG_BUILD make -$STRIP _dbus_bindings/.libs/*.so -$STRIP _dbus_glib_bindings/.libs/*.so - $MAKEINSTALL $PYTHON -Wi -t $PYTHON_LIBDIR/compileall.py . diff --git a/packages/python/x11-toolkits/pygtk/build b/packages/python/x11-toolkits/pygtk/build index f2e318d7f3..74321f8801 100755 --- a/packages/python/x11-toolkits/pygtk/build +++ b/packages/python/x11-toolkits/pygtk/build @@ -24,14 +24,6 @@ cd $PKG_BUILD make -$STRIP gtk/.libs/_gtk.so -$STRIP gtk/.libs/gtkunixprint.so -[ "$MEDIACENTER" = entertainer ] && \ - $STRIP gtk/.libs/glade.so -$STRIP .libs/atk.so -$STRIP .libs/pango.so -$STRIP .libs/pangocairo.so - $MAKEINSTALL #chmod +x codegen/pygtk-codegen-2.0 diff --git a/packages/security/gnutls/build b/packages/security/gnutls/build index 791729d1d2..91ffdcc80b 100755 --- a/packages/security/gnutls/build +++ b/packages/security/gnutls/build @@ -17,6 +17,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/security/libgcrypt/build b/packages/security/libgcrypt/build index e935da3fd0..438baea23a 100755 --- a/packages/security/libgcrypt/build +++ b/packages/security/libgcrypt/build @@ -21,8 +21,6 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/security/libgpg-error/build b/packages/security/libgpg-error/build index e2da67fb0d..5906e77c47 100755 --- a/packages/security/libgpg-error/build +++ b/packages/security/libgpg-error/build @@ -15,8 +15,6 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - make DESTDIR=$SYSROOT_PREFIX install $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/sysutils/hal/build b/packages/sysutils/hal/build index d53f5f6f0c..5835c47201 100755 --- a/packages/sysutils/hal/build +++ b/packages/sysutils/hal/build @@ -70,9 +70,6 @@ cd $PKG_BUILD make -$STRIP libhal/.libs/libhal.so* -$STRIP libhal-storage/.libs/libhal-storage.so* - make -C libhal DESTDIR=$SYSROOT_PREFIX install make -C libhal-storage DESTDIR=$SYSROOT_PREFIX install make DESTDIR=$SYSROOT_PREFIX install-pkgconfigDATA diff --git a/packages/sysutils/udev/build b/packages/sysutils/udev/build index cec2911a0e..16cf4c627a 100755 --- a/packages/sysutils/udev/build +++ b/packages/sysutils/udev/build @@ -23,8 +23,6 @@ make $STRIP udev/udevd $STRIP udev/udevadm -$STRIP extras/volume_id/lib/.libs/*.so* -$STRIP udev/lib/.libs/*.so* make DESTDIR=$SYSROOT_PREFIX install diff --git a/packages/textproc/expat/build b/packages/textproc/expat/build index 6ef942d489..935f864ff1 100755 --- a/packages/textproc/expat/build +++ b/packages/textproc/expat/build @@ -15,6 +15,4 @@ cd $PKG_BUILD $MAKE -$STRIP .libs/libexpat.so* - $MAKEINSTALL diff --git a/packages/textproc/libxml2/build b/packages/textproc/libxml2/build index e5e10f6fba..e8734834f4 100755 --- a/packages/textproc/libxml2/build +++ b/packages/textproc/libxml2/build @@ -18,8 +18,6 @@ cd $PKG_BUILD $MAKE -$STRIP .libs/libxml2*.so* - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/toolchain/devel/binutils/01_ld_makefile_patch.diff b/packages/toolchain/devel/binutils/01_ld_makefile_patch.diff deleted file mode 100644 index 5cb0f614d8..0000000000 --- a/packages/toolchain/devel/binutils/01_ld_makefile_patch.diff +++ /dev/null @@ -1,24 +0,0 @@ -diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.am binutils-2.17.50.0.17/ld/Makefile.am ---- binutils-2.17.50.0.17.oorig/ld/Makefile.am 2007-06-18 19:29:29.000000000 +0200 -+++ binutils-2.17.50.0.17/ld/Makefile.am 2007-06-25 10:00:36.000000000 +0200 -@@ -18,7 +18,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - - EMUL = @EMUL@ - EMULATION_OFILES = @EMULATION_OFILES@ -diff -u binutils-2.17.50.0.17.oorig/ld/Makefile.in binutils-2.17.50.0.17/ld/Makefile.in ---- binutils-2.17.50.0.17.oorig/ld/Makefile.in 2007-06-18 19:29:29.000000000 +0200 -+++ binutils-2.17.50.0.17/ld/Makefile.in 2007-06-25 10:00:36.000000000 +0200 -@@ -287,7 +287,7 @@ - # We put the scripts in the directory $(scriptdir)/ldscripts. - # We can't put the scripts in $(datadir) because the SEARCH_DIR - # directives need to be different for native and cross linkers. --scriptdir = $(tooldir)/lib -+scriptdir = $(libdir) - BASEDIR = $(srcdir)/.. - BFDDIR = $(BASEDIR)/bfd - INCDIR = $(BASEDIR)/include diff --git a/packages/toolchain/devel/binutils/02_fix-missing-makeinfo.diff b/packages/toolchain/devel/binutils/02_fix-missing-makeinfo.diff deleted file mode 100644 index 8fa934b9be..0000000000 --- a/packages/toolchain/devel/binutils/02_fix-missing-makeinfo.diff +++ /dev/null @@ -1,14 +0,0 @@ -This patch avoids the "missing" script to return an error when -makeinfo (from texinfo package) isn't available on host - ---- binutils-2.17.50.0.17.orig/missing 2007-10-17 02:04:41.000000000 +0200 -+++ binutils-2.17.50.0.17/missing 2007-10-17 02:05:24.000000000 +0200 -@@ -299,7 +299,7 @@ - fi - # If the file does not exist, the user really needs makeinfo; - # let's fail without touching anything. -- test -f $file || exit 1 -+ # test -f $file || exit 1 - touch $file - ;; - diff --git a/packages/toolchain/devel/binutils/12_check_ldrunpath_length.diff b/packages/toolchain/devel/binutils/12_check_ldrunpath_length.diff deleted file mode 100644 index 6e809213d8..0000000000 --- a/packages/toolchain/devel/binutils/12_check_ldrunpath_length.diff +++ /dev/null @@ -1,21 +0,0 @@ -diff -u binutils-2.17.50.0.17.oorig/ld/emultempl/elf32.em binutils-2.17.50.0.17/ld/emultempl/elf32.em ---- binutils-2.17.50.0.17.oorig/ld/emultempl/elf32.em 2007-06-18 19:31:40.000000000 +0200 -+++ binutils-2.17.50.0.17/ld/emultempl/elf32.em 2007-06-25 10:01:25.000000000 +0200 -@@ -1007,6 +1007,8 @@ - && command_line.rpath == NULL) - { - lib_path = (const char *) getenv ("LD_RUN_PATH"); -+ if ((lib_path) && (strlen (lib_path) == 0)) -+ lib_path = NULL; - if (gld${EMULATION_NAME}_search_needed (lib_path, &n, - force)) - break; -@@ -1191,6 +1193,8 @@ - rpath = command_line.rpath; - if (rpath == NULL) - rpath = (const char *) getenv ("LD_RUN_PATH"); -+ if ((rpath) && (strlen (rpath) == 0)) -+ rpath = NULL; - if (! (bfd_elf_size_dynamic_sections - (output_bfd, command_line.soname, rpath, - command_line.filter_shlib, diff --git a/packages/toolchain/devel/binutils/binutils-2.19-branch_update-4.diff b/packages/toolchain/devel/binutils/binutils-2.19-branch_update-4.diff deleted file mode 100644 index 47824694e2..0000000000 --- a/packages/toolchain/devel/binutils/binutils-2.19-branch_update-4.diff +++ /dev/null @@ -1,3598 +0,0 @@ -Submitted By: Jim Gifford (jim at cross-lfs dot org) -Date: 01-22-2009 -Initial Package Version: 2.19 -Origin: Upstream -Upstream Status: Applied -Description: This is a branch update for binutils-2.19, and should be - rechecked periodically. - -diff -Naur binutils-2.19.orig/bfd/ChangeLog binutils-2.19/bfd/ChangeLog ---- binutils-2.19.orig/bfd/ChangeLog 2008-10-16 06:20:48.000000000 -0700 -+++ binutils-2.19/bfd/ChangeLog 2009-01-14 01:13:49.000000000 -0800 -@@ -1,3 +1,37 @@ -+2009-01-14 Joseph Myers -+ -+ * elf32-arm.c (elf32_arm_final_link_relocate): Do not turn -+ branches to undefine weak symbols into branches to the next -+ instruction if creating PLT entries for those symbols. -+ -+2008-12-23 Nick Clifton -+ -+ * Import this patch from the mainline: -+ 2008-11-10 Andreas Schwab -+ -+ PR 7011 -+ * elf.c (assign_file_positions_for_non_load_sections): Handle -+ PT_GNU_RELRO specially. -+ -+2008-11-20 Alan Modra -+ -+ * elf32-ppc.c (allocate_dynrelocs): Always use tlsld_got for -+ TLS_LD even when symbol is used with other TLS reloc types. -+ (ppc_elf_relocate_section): Bypass symbol checks when using tlsld_got. -+ Leave addend zero on LD DTPMOD dynamic reloc. -+ -+2008-11-17 Eric B. Weddington -+ -+ PR 7022 -+ * elf32-avr.c (bfd_elf_avr_final_write_processing): -+ Add missing break statements. -+ -+2008-10-28 Tristan Gingold -+ -+ * configure.in: Bump version to 2.19.0 -+ * Makefile.am (RELEASE): Unset. -+ * configure, Makefile.in: Regenerated. -+ - 2008-10-16 Tristan Gingold - - * configure.in: Bump version to 2.19 -diff -Naur binutils-2.19.orig/bfd/configure binutils-2.19/bfd/configure ---- binutils-2.19.orig/bfd/configure 2008-10-16 06:20:42.000000000 -0700 -+++ binutils-2.19/bfd/configure 2008-10-28 03:42:15.000000000 -0700 -@@ -3032,7 +3032,7 @@ - - # Define the identity of the package. - PACKAGE=bfd -- VERSION=2.19 -+ VERSION=2.19.0 - - - cat >>confdefs.h <<_ACEOF -diff -Naur binutils-2.19.orig/bfd/configure.in binutils-2.19/bfd/configure.in ---- binutils-2.19.orig/bfd/configure.in 2008-10-16 06:20:34.000000000 -0700 -+++ binutils-2.19/bfd/configure.in 2008-10-28 03:42:15.000000000 -0700 -@@ -8,7 +8,7 @@ - AC_CANONICAL_TARGET - AC_ISC_POSIX - --AM_INIT_AUTOMAKE(bfd, 2.19) -+AM_INIT_AUTOMAKE(bfd, 2.19.0) - - dnl These must be called before LT_INIT, because it may want - dnl to call AC_CHECK_PROG. -diff -Naur binutils-2.19.orig/bfd/doc/bfdver.texi binutils-2.19/bfd/doc/bfdver.texi ---- binutils-2.19.orig/bfd/doc/bfdver.texi 2008-10-16 06:45:29.000000000 -0700 -+++ binutils-2.19/bfd/doc/bfdver.texi 2009-01-14 01:00:24.000000000 -0800 -@@ -1,4 +1,4 @@ --@set VERSION 2.19 -+@set VERSION 2.19.0 - @set VERSION_PACKAGE (GNU Binutils) --@set UPDATED October 2008 -+@set UPDATED December 2008 - @set BUGURL @uref{http://www.sourceware.org/bugzilla/} -diff -Naur binutils-2.19.orig/bfd/elf32-arm.c binutils-2.19/bfd/elf32-arm.c ---- binutils-2.19.orig/bfd/elf32-arm.c 2008-08-26 07:40:18.000000000 -0700 -+++ binutils-2.19/bfd/elf32-arm.c 2009-01-14 01:13:49.000000000 -0800 -@@ -6381,8 +6381,9 @@ - int thumb2 = using_thumb2 (globals); - - /* A branch to an undefined weak symbol is turned into a jump to -- the next instruction. */ -- if (h && h->root.type == bfd_link_hash_undefweak) -+ the next instruction unless a PLT entry will be created. */ -+ if (h && h->root.type == bfd_link_hash_undefweak -+ && !(splt != NULL && h->plt.offset != (bfd_vma) -1)) - { - bfd_put_16 (input_bfd, 0xe000, hit_data); - bfd_put_16 (input_bfd, 0xbf00, hit_data + 2); -diff -Naur binutils-2.19.orig/bfd/elf32-avr.c binutils-2.19/bfd/elf32-avr.c ---- binutils-2.19.orig/bfd/elf32-avr.c 2008-08-08 22:35:12.000000000 -0700 -+++ binutils-2.19/bfd/elf32-avr.c 2008-11-17 07:26:01.000000000 -0800 -@@ -1298,6 +1298,7 @@ - - case bfd_mach_avr25: - val = E_AVR_MACH_AVR25; -+ break; - - case bfd_mach_avr3: - val = E_AVR_MACH_AVR3; -@@ -1305,9 +1306,11 @@ - - case bfd_mach_avr31: - val = E_AVR_MACH_AVR31; -+ break; - - case bfd_mach_avr35: - val = E_AVR_MACH_AVR35; -+ break; - - case bfd_mach_avr4: - val = E_AVR_MACH_AVR4; -diff -Naur binutils-2.19.orig/bfd/elf32-ppc.c binutils-2.19/bfd/elf32-ppc.c ---- binutils-2.19.orig/bfd/elf32-ppc.c 2008-10-02 01:07:16.000000000 -0700 -+++ binutils-2.19/bfd/elf32-ppc.c 2008-11-20 03:50:22.000000000 -0800 -@@ -4997,6 +4997,9 @@ - eh = (struct ppc_elf_link_hash_entry *) h; - if (eh->elf.got.refcount > 0) - { -+ bfd_boolean dyn; -+ unsigned int need; -+ - /* Make sure this symbol is output as a dynamic symbol. */ - if (eh->elf.dynindx == -1 - && !eh->elf.forced_local -@@ -5006,30 +5009,32 @@ - return FALSE; - } - -- if (eh->tls_mask == (TLS_TLS | TLS_LD) -- && !eh->elf.def_dynamic) -- { -- /* If just an LD reloc, we'll just use htab->tlsld_got.offset. */ -- htab->tlsld_got.refcount += 1; -- eh->elf.got.offset = (bfd_vma) -1; -- } -- else -+ need = 0; -+ if ((eh->tls_mask & TLS_TLS) != 0) - { -- bfd_boolean dyn; -- unsigned int need = 0; -- if ((eh->tls_mask & TLS_TLS) != 0) -+ if ((eh->tls_mask & TLS_LD) != 0) - { -- if ((eh->tls_mask & TLS_LD) != 0) -- need += 8; -- if ((eh->tls_mask & TLS_GD) != 0) -+ if (!eh->elf.def_dynamic) -+ /* We'll just use htab->tlsld_got.offset. This should -+ always be the case. It's a little odd if we have -+ a local dynamic reloc against a non-local symbol. */ -+ htab->tlsld_got.refcount += 1; -+ else - need += 8; -- if ((eh->tls_mask & (TLS_TPREL | TLS_TPRELGD)) != 0) -- need += 4; -- if ((eh->tls_mask & TLS_DTPREL) != 0) -- need += 4; - } -- else -+ if ((eh->tls_mask & TLS_GD) != 0) -+ need += 8; -+ if ((eh->tls_mask & (TLS_TPREL | TLS_TPRELGD)) != 0) -+ need += 4; -+ if ((eh->tls_mask & TLS_DTPREL) != 0) - need += 4; -+ } -+ else -+ need += 4; -+ if (need == 0) -+ eh->elf.got.offset = (bfd_vma) -1; -+ else -+ { - eh->elf.got.offset = allocate_got (htab, need); - dyn = htab->elf.dynamic_sections_created; - if ((info->shared -@@ -5039,7 +5044,8 @@ - { - /* All the entries we allocated need relocs. - Except LD only needs one. */ -- if ((eh->tls_mask & TLS_LD) != 0) -+ if ((eh->tls_mask & TLS_LD) != 0 -+ && eh->elf.def_dynamic) - need -= 4; - htab->relgot->size += need * (sizeof (Elf32_External_Rela) / 4); - } -@@ -5275,27 +5281,24 @@ - for (; local_got < end_local_got; ++local_got, ++lgot_masks) - if (*local_got > 0) - { -- if (*lgot_masks == (TLS_TLS | TLS_LD)) -+ unsigned int need = 0; -+ if ((*lgot_masks & TLS_TLS) != 0) - { -- /* If just an LD reloc, we'll just use -- htab->tlsld_got.offset. */ -- htab->tlsld_got.refcount += 1; -- *local_got = (bfd_vma) -1; -+ if ((*lgot_masks & TLS_GD) != 0) -+ need += 8; -+ if ((*lgot_masks & TLS_LD) != 0) -+ htab->tlsld_got.refcount += 1; -+ if ((*lgot_masks & (TLS_TPREL | TLS_TPRELGD)) != 0) -+ need += 4; -+ if ((*lgot_masks & TLS_DTPREL) != 0) -+ need += 4; - } - else -+ need += 4; -+ if (need == 0) -+ *local_got = (bfd_vma) -1; -+ else - { -- unsigned int need = 0; -- if ((*lgot_masks & TLS_TLS) != 0) -- { -- if ((*lgot_masks & TLS_GD) != 0) -- need += 8; -- if ((*lgot_masks & (TLS_TPREL | TLS_TPRELGD)) != 0) -- need += 4; -- if ((*lgot_masks & TLS_DTPREL) != 0) -- need += 4; -- } -- else -- need += 4; - *local_got = allocate_got (htab, need); - if (info->shared) - htab->relgot->size += (need -@@ -6560,7 +6563,8 @@ - - /* Generate relocs for the dynamic linker. */ - if ((info->shared || indx != 0) -- && (h == NULL -+ && (offp == &htab->tlsld_got.offset -+ || h == NULL - || ELF_ST_VISIBILITY (h->other) == STV_DEFAULT - || h->root.type != bfd_link_hash_undefweak)) - { -@@ -6591,7 +6595,7 @@ - outrel.r_info = ELF32_R_INFO (indx, R_PPC_RELATIVE); - else - outrel.r_info = ELF32_R_INFO (indx, R_PPC_GLOB_DAT); -- if (indx == 0) -+ if (indx == 0 && tls_ty != (TLS_TLS | TLS_LD)) - { - outrel.r_addend += relocation; - if (tls_ty & (TLS_GD | TLS_DTPREL | TLS_TPREL)) -diff -Naur binutils-2.19.orig/bfd/elf.c binutils-2.19/bfd/elf.c ---- binutils-2.19.orig/bfd/elf.c 2008-10-09 05:18:23.000000000 -0700 -+++ binutils-2.19/bfd/elf.c 2008-12-23 02:06:46.000000000 -0800 -@@ -4606,7 +4606,61 @@ - m != NULL; - m = m->next, p++) - { -- if (m->count != 0) -+ if (p->p_type == PT_GNU_RELRO) -+ { -+ const Elf_Internal_Phdr *lp; -+ -+ BFD_ASSERT (!m->includes_filehdr && !m->includes_phdrs); -+ -+ if (link_info != NULL) -+ { -+ /* During linking the range of the RELRO segment is passed -+ in link_info. */ -+ for (lp = phdrs; lp < phdrs + count; ++lp) -+ { -+ if (lp->p_type == PT_LOAD -+ && lp->p_vaddr >= link_info->relro_start -+ && lp->p_vaddr < link_info->relro_end -+ && lp->p_vaddr + lp->p_filesz >= link_info->relro_end) -+ break; -+ } -+ } -+ else -+ { -+ /* Otherwise we are copying an executable or shared -+ library, but we need to use the same linker logic. */ -+ for (lp = phdrs; lp < phdrs + count; ++lp) -+ { -+ if (lp->p_type == PT_LOAD -+ && lp->p_paddr == p->p_paddr) -+ break; -+ } -+ } -+ -+ if (lp < phdrs + count) -+ { -+ p->p_vaddr = lp->p_vaddr; -+ p->p_paddr = lp->p_paddr; -+ p->p_offset = lp->p_offset; -+ if (link_info != NULL) -+ p->p_filesz = link_info->relro_end - lp->p_vaddr; -+ else if (m->p_size_valid) -+ p->p_filesz = m->p_size; -+ else -+ abort (); -+ p->p_memsz = p->p_filesz; -+ p->p_align = 1; -+ p->p_flags = (lp->p_flags & ~PF_W); -+ } -+ else if (link_info != NULL) -+ { -+ memset (p, 0, sizeof *p); -+ p->p_type = PT_NULL; -+ } -+ else -+ abort (); -+ } -+ else if (m->count != 0) - { - if (p->p_type != PT_LOAD - && (p->p_type != PT_NOTE -@@ -4622,87 +4676,20 @@ - p->p_filesz = sect->filepos - m->sections[0]->filepos; - if (hdr->sh_type != SHT_NOBITS) - p->p_filesz += hdr->sh_size; -- -- if (p->p_type == PT_GNU_RELRO) -- { -- /* When we get here, we are copying executable -- or shared library. But we need to use the same -- linker logic. */ -- Elf_Internal_Phdr *lp; -- -- for (lp = phdrs; lp < phdrs + count; ++lp) -- { -- if (lp->p_type == PT_LOAD -- && lp->p_paddr == p->p_paddr) -- break; -- } -- -- if (lp < phdrs + count) -- { -- /* We should use p_size if it is valid since it -- may contain the first few bytes of the next -- SEC_ALLOC section. */ -- if (m->p_size_valid) -- p->p_filesz = m->p_size; -- else -- abort (); -- p->p_vaddr = lp->p_vaddr; -- p->p_offset = lp->p_offset; -- p->p_memsz = p->p_filesz; -- p->p_align = 1; -- } -- else -- abort (); -- } -- else -- p->p_offset = m->sections[0]->filepos; -+ p->p_offset = m->sections[0]->filepos; - } - } -- else -+ else if (m->includes_filehdr) - { -- if (m->includes_filehdr) -- { -- p->p_vaddr = filehdr_vaddr; -- if (! m->p_paddr_valid) -- p->p_paddr = filehdr_paddr; -- } -- else if (m->includes_phdrs) -- { -- p->p_vaddr = phdrs_vaddr; -- if (! m->p_paddr_valid) -- p->p_paddr = phdrs_paddr; -- } -- else if (p->p_type == PT_GNU_RELRO) -- { -- Elf_Internal_Phdr *lp; -- -- for (lp = phdrs; lp < phdrs + count; ++lp) -- { -- if (lp->p_type == PT_LOAD -- && lp->p_vaddr <= link_info->relro_end -- && lp->p_vaddr >= link_info->relro_start -- && (lp->p_vaddr + lp->p_filesz -- >= link_info->relro_end)) -- break; -- } -- -- if (lp < phdrs + count -- && link_info->relro_end > lp->p_vaddr) -- { -- p->p_vaddr = lp->p_vaddr; -- p->p_paddr = lp->p_paddr; -- p->p_offset = lp->p_offset; -- p->p_filesz = link_info->relro_end - lp->p_vaddr; -- p->p_memsz = p->p_filesz; -- p->p_align = 1; -- p->p_flags = (lp->p_flags & ~PF_W); -- } -- else -- { -- memset (p, 0, sizeof *p); -- p->p_type = PT_NULL; -- } -- } -+ p->p_vaddr = filehdr_vaddr; -+ if (! m->p_paddr_valid) -+ p->p_paddr = filehdr_paddr; -+ } -+ else if (m->includes_phdrs) -+ { -+ p->p_vaddr = phdrs_vaddr; -+ if (! m->p_paddr_valid) -+ p->p_paddr = phdrs_paddr; - } - } - -diff -Naur binutils-2.19.orig/bfd/Makefile.in binutils-2.19/bfd/Makefile.in ---- binutils-2.19.orig/bfd/Makefile.in 2008-10-16 06:20:48.000000000 -0700 -+++ binutils-2.19/bfd/Makefile.in 2009-01-22 16:10:32.431360245 -0800 -@@ -271,7 +271,7 @@ - ACLOCAL_AMFLAGS = -I . -I .. -I ../config - - # Uncomment the following line when doing a release. --RELEASE = y -+RELEASE=y - INCDIR = $(srcdir)/../include - CSEARCH = -I. -I$(srcdir) -I$(INCDIR) - MKDEP = gcc -MM -diff -Naur binutils-2.19.orig/bfd/version.h binutils-2.19/bfd/version.h ---- binutils-2.19.orig/bfd/version.h 2008-10-16 05:51:57.000000000 -0700 -+++ binutils-2.19/bfd/version.h 2009-01-22 16:00:14.000000000 -0800 -@@ -1,4 +1,4 @@ --#define BFD_VERSION_DATE 20081016 -+#define BFD_VERSION_DATE 20090123 - #define BFD_VERSION @bfd_version@ - #define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@ - #define REPORT_BUGS_TO @report_bugs_to@ -diff -Naur binutils-2.19.orig/binutils/ChangeLog binutils-2.19/binutils/ChangeLog ---- binutils-2.19.orig/binutils/ChangeLog 2008-10-02 01:07:16.000000000 -0700 -+++ binutils-2.19/binutils/ChangeLog 2008-12-23 03:49:58.000000000 -0800 -@@ -1,3 +1,16 @@ -+2008-12-23 Nick Clifton -+ -+ * windmc.c (main): Use correct type for file length. -+ * dlltool.c (gen_exp_file): Likewise. -+ -+2008-12-01 Nick Clifton -+ -+ PR 7044 -+ * dlltool.c (run): Use formatting string to avoid compile time -+ warning. -+ (gen_exp_file): Check return value from fread. -+ * windmc.c (main): Check return value from fread. -+ - 2008-09-25 Richard Henderson - - * dwarf.c (size_of_encoded_value, get_encoded_value): Move up. -diff -Naur binutils-2.19.orig/binutils/dlltool.c binutils-2.19/binutils/dlltool.c ---- binutils-2.19.orig/binutils/dlltool.c 2008-07-29 21:34:56.000000000 -0700 -+++ binutils-2.19/binutils/dlltool.c 2008-12-23 03:49:58.000000000 -0800 -@@ -1206,7 +1206,7 @@ - - if (pid == -1) - { -- inform (strerror (errno)); -+ inform ("%s", strerror (errno)); - - fatal (errmsg_fmt, errmsg_arg); - } -@@ -1980,7 +1980,7 @@ - int addr; - long need[PAGE_SIZE]; - long page_addr; -- int numbytes; -+ bfd_size_type numbytes; - int num_entries; - long *copy; - int j; -@@ -1992,10 +1992,10 @@ - numbytes = ftell (base_file); - fseek (base_file, 0, SEEK_SET); - copy = xmalloc (numbytes); -- fread (copy, 1, numbytes, base_file); -+ if (fread (copy, 1, numbytes, base_file) < numbytes) -+ fatal (_("failed to read the number of entries from base file")); - num_entries = numbytes / sizeof (long); - -- - fprintf (f, "\t.section\t.reloc\n"); - if (num_entries) - { -diff -Naur binutils-2.19.orig/binutils/windmc.c binutils-2.19/binutils/windmc.c ---- binutils-2.19.orig/binutils/windmc.c 2008-07-29 21:34:56.000000000 -0700 -+++ binutils-2.19/binutils/windmc.c 2008-12-23 03:49:58.000000000 -0800 -@@ -1144,7 +1144,7 @@ - unichar *u; - rc_uint_type ul; - char *buff; -- long flen; -+ bfd_size_type flen; - FILE *fp = fopen (input_filename, "rb"); - - if (!fp) -@@ -1155,7 +1155,8 @@ - fseek (fp, 0, SEEK_SET); - buff = malloc (flen + 3); - memset (buff, 0, flen + 3); -- fread (buff, 1, flen, fp); -+ if (fread (buff, 1, flen, fp) < flen) -+ fatal (_("unable to read contents of %s"), input_filename); - fclose (fp); - if (mcset_text_in_is_unicode != 1) - { -diff -Naur binutils-2.19.orig/configure.ac binutils-2.19/configure.ac ---- binutils-2.19.orig/configure.ac 2008-10-16 06:45:42.000000000 -0700 -+++ binutils-2.19/configure.ac 2008-09-03 19:18:16.000000000 -0700 -@@ -166,7 +166,7 @@ - # binutils, gas and ld appear in that order because it makes sense to run - # "make check" in that particular order. - # If --enable-gold is used, "gold" will replace "ld". --host_tools="byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" -+host_tools="texinfo byacc flex bison binutils gas ld fixincludes gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar gnattools" - - # libgcj represents the runtime libraries only used by gcj. - libgcj="target-libffi \ -diff -Naur binutils-2.19.orig/gas/ChangeLog binutils-2.19/gas/ChangeLog ---- binutils-2.19.orig/gas/ChangeLog 2008-10-16 05:52:03.000000000 -0700 -+++ binutils-2.19/gas/ChangeLog 2009-01-14 01:00:24.000000000 -0800 -@@ -1,3 +1,29 @@ -+2009-01-14 Jakub Jelinek -+ -+ * Makefile.am (ehopt.o): Add struc-symbol.h. -+ * Makefile.in: Regenerated. -+ * ehopt.c: Include struc-symbol.h. -+ (check_eh_frame): For very small O_constant DW_CFA_advance_loc4 -+ create correct DW_CFA_advance_loc. Handle O_subtract only -+ for code alignment factor 1, otherwise handle O_divide or -+ O_right_shift of O_subtract and O_constant. -+ (eh_frame_estimate_size_before_relax): Always divide by ca. -+ (eh_frame_convert_frag): Likewise. -+ -+2009-01-14 John David Anglin -+ -+ * dw2gencfi.c (output_cfi_insn): Scale DW_CFA_advance_loc1, -+ DW_CFA_advance_loc2 and DW_CFA_advance_loc4 outputs. -+ -+2009-01-08 Adam Nemet -+ -+ * config/tc-mips.c (NO_ISA_COP): New macro. -+ (COP_INSN): New macro. -+ (is_opcode_valid): Use them. -+ (macro) : Use them. Don't accept coprocessor load store -+ insns based on the ISA if CPU is NO_ISA_COP. -+ : Likewise for coprocessor operations. -+ - 2008-10-09 Eric Botcazou - - * dw2gencfi.c (cfi_finish): Deal with md_fix_up_eh_frame. -diff -Naur binutils-2.19.orig/gas/config/tc-mips.c binutils-2.19/gas/config/tc-mips.c ---- binutils-2.19.orig/gas/config/tc-mips.c 2008-08-08 12:24:49.000000000 -0700 -+++ binutils-2.19/gas/config/tc-mips.c 2009-01-08 16:16:12.000000000 -0800 -@@ -514,12 +514,11 @@ - /* Returns true for a (non floating-point) coprocessor instruction. Reading - or writing the condition code is only possible on the coprocessors and - these insns are not marked with INSN_COP. Thus for these insns use the -- condition-code flags unless this is the floating-point coprocessor. */ -+ condition-code flags. */ - #define COP_INSN(PINFO) \ - (PINFO != INSN_MACRO \ -- && (((PINFO) & INSN_COP) \ -- || ((PINFO) & (INSN_READ_COND_CODE | INSN_WRITE_COND_CODE) \ -- && ((PINFO) & (FP_S | FP_D)) == 0))) -+ && ((PINFO) & (FP_S | FP_D)) == 0 \ -+ && ((PINFO) & (INSN_COP | INSN_READ_COND_CODE | INSN_WRITE_COND_CODE))) - - /* MIPS PIC level. */ - -diff -Naur binutils-2.19.orig/gas/dw2gencfi.c binutils-2.19/gas/dw2gencfi.c ---- binutils-2.19.orig/gas/dw2gencfi.c 2008-10-16 05:52:09.000000000 -0700 -+++ binutils-2.19/gas/dw2gencfi.c 2009-01-14 01:00:24.000000000 -0800 -@@ -1,5 +1,5 @@ - /* dw2gencfi.c - Support for generating Dwarf2 CFI information. -- Copyright 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. -+ Copyright 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. - Contributed by Michal Ludvig - - This file is part of GAS, the GNU Assembler. -@@ -972,20 +972,20 @@ - - if (scaled <= 0x3F) - out_one (DW_CFA_advance_loc + scaled); -- else if (delta <= 0xFF) -+ else if (scaled <= 0xFF) - { - out_one (DW_CFA_advance_loc1); -- out_one (delta); -+ out_one (scaled); - } -- else if (delta <= 0xFFFF) -+ else if (scaled <= 0xFFFF) - { - out_one (DW_CFA_advance_loc2); -- out_two (delta); -+ out_two (scaled); - } - else - { - out_one (DW_CFA_advance_loc4); -- out_four (delta); -+ out_four (scaled); - } - } - else -diff -Naur binutils-2.19.orig/gas/ehopt.c binutils-2.19/gas/ehopt.c ---- binutils-2.19.orig/gas/ehopt.c 2007-11-06 09:15:10.000000000 -0800 -+++ binutils-2.19/gas/ehopt.c 2009-01-14 01:00:25.000000000 -0800 -@@ -1,5 +1,6 @@ - /* ehopt.c--optimize gcc exception frame information. -- Copyright 1998, 2000, 2001, 2003, 2005, 2007 Free Software Foundation, Inc. -+ Copyright 1998, 2000, 2001, 2003, 2005, 2007, 2008 -+ Free Software Foundation, Inc. - Written by Ian Lance Taylor . - - This file is part of GAS, the GNU Assembler. -@@ -21,6 +22,7 @@ - - #include "as.h" - #include "subsegs.h" -+#include "struc-symbol.h" - - /* We include this ELF file, even though we may not be assembling for - ELF, since the exception frame information is always in a format -@@ -398,13 +400,10 @@ - subtracted were in the same frag and the expression was - reduced to a constant. We can do the optimization entirely - in this function. */ -- if (d->cie_info.code_alignment > 0 -- && exp->X_add_number % d->cie_info.code_alignment == 0 -- && exp->X_add_number / d->cie_info.code_alignment < 0x40) -+ if (exp->X_add_number < 0x40) - { - d->loc4_frag->fr_literal[d->loc4_fix] -- = DW_CFA_advance_loc -- | (exp->X_add_number / d->cie_info.code_alignment); -+ = DW_CFA_advance_loc | exp->X_add_number; - /* No more bytes needed. */ - return 1; - } -@@ -419,23 +418,39 @@ - *pnbytes = 2; - } - } -- else if (exp->X_op == O_subtract) -+ else if (exp->X_op == O_subtract && d->cie_info.code_alignment == 1) - { - /* This is a case we can optimize. The expression was not - reduced, so we can not finish the optimization until the end - of the assembly. We set up a variant frag which we handle - later. */ -- int fr_subtype; -- -- if (d->cie_info.code_alignment > 0) -- fr_subtype = d->cie_info.code_alignment << 3; -- else -- fr_subtype = 0; -- -- frag_var (rs_cfa, 4, 0, fr_subtype, make_expr_symbol (exp), -+ frag_var (rs_cfa, 4, 0, 1 << 3, make_expr_symbol (exp), - d->loc4_fix, (char *) d->loc4_frag); - return 1; - } -+ else if ((exp->X_op == O_divide -+ || exp->X_op == O_right_shift) -+ && d->cie_info.code_alignment > 1) -+ { -+ if (exp->X_add_symbol->bsym -+ && exp->X_op_symbol->bsym -+ && exp->X_add_symbol->sy_value.X_op == O_subtract -+ && exp->X_op_symbol->sy_value.X_op == O_constant -+ && ((exp->X_op == O_divide -+ ? exp->X_op_symbol->sy_value.X_add_number -+ : (offsetT) 1 << exp->X_op_symbol->sy_value.X_add_number) -+ == (offsetT) d->cie_info.code_alignment)) -+ { -+ /* This is a case we can optimize as well. The expression was -+ not reduced, so we can not finish the optimization until the -+ end of the assembly. We set up a variant frag which we -+ handle later. */ -+ frag_var (rs_cfa, 4, 0, d->cie_info.code_alignment << 3, -+ make_expr_symbol (&exp->X_add_symbol->sy_value), -+ d->loc4_fix, (char *) d->loc4_frag); -+ return 1; -+ } -+ } - break; - - case state_error: -@@ -459,7 +474,9 @@ - - diff = resolve_symbol_value (frag->fr_symbol); - -- if (ca > 0 && diff % ca == 0 && diff / ca < 0x40) -+ assert (ca > 0); -+ diff /= ca; -+ if (diff < 0x40) - ret = 0; - else if (diff < 0x100) - ret = 1; -@@ -496,21 +513,21 @@ - { - offsetT diff; - fragS *loc4_frag; -- int loc4_fix; -+ int loc4_fix, ca; - - loc4_frag = (fragS *) frag->fr_opcode; - loc4_fix = (int) frag->fr_offset; - - diff = resolve_symbol_value (frag->fr_symbol); - -+ ca = frag->fr_subtype >> 3; -+ assert (ca > 0); -+ diff /= ca; - switch (frag->fr_subtype & 7) - { - case 0: -- { -- int ca = frag->fr_subtype >> 3; -- assert (ca > 0 && diff % ca == 0 && diff / ca < 0x40); -- loc4_frag->fr_literal[loc4_fix] = DW_CFA_advance_loc | (diff / ca); -- } -+ assert (diff < 0x40); -+ loc4_frag->fr_literal[loc4_fix] = DW_CFA_advance_loc | diff; - break; - - case 1: -diff -Naur binutils-2.19.orig/gas/Makefile.am binutils-2.19/gas/Makefile.am ---- binutils-2.19.orig/gas/Makefile.am 2008-10-02 01:07:17.000000000 -0700 -+++ binutils-2.19/gas/Makefile.am 2009-01-14 01:00:24.000000000 -0800 -@@ -2159,7 +2159,8 @@ - dw2gencfi.o: dw2gencfi.c dw2gencfi.h $(INCDIR)/elf/dwarf2.h \ - subsegs.h $(INCDIR)/obstack.h - ecoff.o: ecoff.c ecoff.h --ehopt.o: ehopt.c subsegs.h $(INCDIR)/obstack.h $(INCDIR)/elf/dwarf2.h -+ehopt.o: ehopt.c subsegs.h $(INCDIR)/obstack.h $(INCDIR)/elf/dwarf2.h \ -+ struc-symbol.h - expr.o: expr.c $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h - flonum-copy.o: flonum-copy.c - flonum-konst.o: flonum-konst.c -diff -Naur binutils-2.19.orig/gas/Makefile.in binutils-2.19/gas/Makefile.in ---- binutils-2.19.orig/gas/Makefile.in 2008-10-02 01:07:17.000000000 -0700 -+++ binutils-2.19/gas/Makefile.in 2009-01-14 01:00:24.000000000 -0800 -@@ -3002,7 +3002,8 @@ - dw2gencfi.o: dw2gencfi.c dw2gencfi.h $(INCDIR)/elf/dwarf2.h \ - subsegs.h $(INCDIR)/obstack.h - ecoff.o: ecoff.c ecoff.h --ehopt.o: ehopt.c subsegs.h $(INCDIR)/obstack.h $(INCDIR)/elf/dwarf2.h -+ehopt.o: ehopt.c subsegs.h $(INCDIR)/obstack.h $(INCDIR)/elf/dwarf2.h \ -+ struc-symbol.h - expr.o: expr.c $(INCDIR)/safe-ctype.h $(INCDIR)/obstack.h - flonum-copy.o: flonum-copy.c - flonum-konst.o: flonum-konst.c -diff -Naur binutils-2.19.orig/gas/testsuite/ChangeLog binutils-2.19/gas/testsuite/ChangeLog ---- binutils-2.19.orig/gas/testsuite/ChangeLog 2008-09-17 02:00:45.000000000 -0700 -+++ binutils-2.19/gas/testsuite/ChangeLog 2009-01-08 16:16:12.000000000 -0800 -@@ -1,3 +1,9 @@ -+2009-01-08 Adam Nemet -+ -+ * gas/mips/mips1-fp.s, gas/mips/mips1-fp.d, gas/mips/mips1-fp.l: -+ New tests. -+ * gas/mips/mips.exp: Run them. -+ - 2008-09-15 Alan Modra - - * gas/all/gas.exp: Don't run redef tests on a bunch of targets. -diff -Naur binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.d binutils-2.19/gas/testsuite/gas/mips/mips1-fp.d ---- binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.d 1969-12-31 16:00:00.000000000 -0800 -+++ binutils-2.19/gas/testsuite/gas/mips/mips1-fp.d 2009-01-08 16:16:12.000000000 -0800 -@@ -0,0 +1,12 @@ -+#as: -32 -+#objdump: -M reg-names=numeric -dr -+#name: MIPS1 FP instructions -+ -+.*: file format .* -+ -+Disassembly of section .text: -+ -+[0-9a-f]+ : -+.*: 46041000 add.s \$f0,\$f2,\$f4 -+.*: 44420000 cfc1 \$2,\$0 -+#pass -diff -Naur binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.l binutils-2.19/gas/testsuite/gas/mips/mips1-fp.l ---- binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.l 1969-12-31 16:00:00.000000000 -0800 -+++ binutils-2.19/gas/testsuite/gas/mips/mips1-fp.l 2009-01-08 16:16:12.000000000 -0800 -@@ -0,0 +1,3 @@ -+.*: Assembler messages: -+.*:6: Error: opcode not supported on this processor: .* \(.*\) `add.s \$f0,\$f2,\$f4' -+.*:7: Error: opcode not supported on this processor: .* \(.*\) `cfc1 \$2,\$0' -diff -Naur binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.s binutils-2.19/gas/testsuite/gas/mips/mips1-fp.s ---- binutils-2.19.orig/gas/testsuite/gas/mips/mips1-fp.s 1969-12-31 16:00:00.000000000 -0800 -+++ binutils-2.19/gas/testsuite/gas/mips/mips1-fp.s 2009-01-08 16:16:12.000000000 -0800 -@@ -0,0 +1,7 @@ -+# Source file used to test -mips1 fp instructions. -+ -+# This is not a complete list of mips1 FP instructions. -+ -+foo: -+ add.s $f0,$f2,$f4 -+ cfc1 $2,$0 -diff -Naur binutils-2.19.orig/gas/testsuite/gas/mips/mips.exp binutils-2.19/gas/testsuite/gas/mips/mips.exp ---- binutils-2.19.orig/gas/testsuite/gas/mips/mips.exp 2008-09-06 01:47:00.000000000 -0700 -+++ binutils-2.19/gas/testsuite/gas/mips/mips.exp 2009-01-08 16:16:12.000000000 -0800 -@@ -398,6 +398,9 @@ - run_dump_test_arches "abs" [mips_arch_list_matching mips1] - run_dump_test_arches "add" [mips_arch_list_matching mips1] - run_dump_test_arches "and" [mips_arch_list_matching mips1] -+ run_dump_test_arches "mips1-fp" [mips_arch_list_matching mips1] -+ run_list_test_arches "mips1-fp" "-32 -msoft-float" \ -+ [mips_arch_list_matching mips1] - run_dump_test "break20" - run_dump_test "trap20" - -diff -Naur binutils-2.19.orig/ld/ChangeLog binutils-2.19/ld/ChangeLog ---- binutils-2.19.orig/ld/ChangeLog 2008-10-09 05:18:31.000000000 -0700 -+++ binutils-2.19/ld/ChangeLog 2009-01-08 06:39:46.000000000 -0800 -@@ -1,826 +1,14 @@ --2008-10-05 Alan Modra -+2009-01-08 Dave Korn - -- PR 6943 -- * scripttempl/avr.sc (.bss): Set lma when relocating. -- (.bss, .noinit): No need to set vma when relocating. -- (.text, .bss, ,noinit): Set vma to zero when not relocating. -+Backport bugfix from HEAD: - --2008-09-30 Joseph Myers -+ 2009-01-03 Dave Korn - -- * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd -- and .rela.branch_lt. -+ * pe-dll.c (autofilter_liblist): Add entry for shared libgcc. -+ (libnamencmp): New function. -+ (auto_export): Use it in place of strncmp when filtering libraries. - --2008-09-29 Nick Clifton -- -- * po/vi.po: Updated Vietnamese translation. -- --2008-09-09 Peter Rosin (tiny change) -- -- * emultempl/pe.em (pe_find_data_imports): Add trailing newline -- to warning message. -- * emultempl/pep.em (pep_find_data_imports): Likewise. -- --2008-09-09 Alan Modra -- -- * Makefile.am: Run "make dep-am". -- * Makefile.in: Regenerate. -- * po/ld.pot: Regenerate. -- --2008-09-09 Alan Modra -- -- * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated. -- * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Ditto. -- --2008-09-08 Tristan Gingold -- -- * NEWS: Add a marker for the 2.19 features. -- --2008-09-07 Alan Modra -- -- * ldlang.h (lang_output_section_find): Define. -- (lang_output_section_statement_lookup): Update prototype. -- * ldlang.c (lang_output_section_find, -- lang_output_section_statement_lookup_1): Merge into.. -- (lang_output_section_statement_lookup): ..here. Update all callers. -- (process_insert_statements): Set constraint negative -- for output section statements we might be inserting. Make error -- fatal on not finding insertion section. -- (lang_output_section_find): Rather than comparing -- output_section_statement.constraint against -1, test whether -- it is postive. -- (lang_output_section_statement_lookup_1): Likewise. -- (output_prev_sec_find, strip_excluded_output_sections): Likewise. -- (lang_record_phdrs): Likewise. -- * emultempl/elf32.em (output_rel_find): Likewise. -- * NEWS: Mention INSERT. -- --2008-08-26 Nick Clifton -- -- PR 6727 -- * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all -- input sections in all input bfds and always select the last -- suitable one, so that interworking stubs are always processed -- after all other input sections. -- (arm_elf_before_allocation): Remove redundant use of -- output_has_begun flag. -- --2008-08-24 Alan Modra -- -- * configure.in: Update a number of obsolete autoconf macros. -- * configure: Regenerate. -- * aclocal.m4: Regenerate. -- --2008-08-21 Jan Kratochvil -- -- PR ld/6833 -- * ldexp.c (fold_binary ): Do not align -- EXPLD.DATASEG.MIN_BASE. -- * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename -- OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'. -- Use OLD_BASE now for the minimal base check after the base decrease by -- the maximum alignment found. -- --2008-08-17 Alan Modra -- -- PR 6478 -- * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols. -- Don't free symbol pointer array. -- (check_refs): Likewise. -- * ldmain.c (warning_callback): Likewise. -- * ldmisc.c (vfinfo): Likewise. -- * pe-dll.c (process_def_file): Likewise. -- (pe_walk_relocs_of_symbol, generate_reloc): Likewise. -- * emultempl/pe.em (pe_find_data_imports): Likewise. -- (gld_${EMULATION_NAME}_after_open): Likewise. -- * emultempl/pep.em (pep_find_data_imports): Likewise. -- (gld_${EMULATION_NAME}_after_open): Likewise. -- * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count, -- passive_position, closed. -- * ldlang.c (new_afile): Don't set asymbols and symbol_count. -- * ldmain.c (add_archive_element): xcalloc lang_input_statement_type. -- --2008-08-15 Alan Modra -- -- PR 6526 -- * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS. -- * Makefile.in: Regenerate. -- * aclocal.m4: Regenerate. -- * config.in: Regenerate. -- * configure: Regenerate. -- --2008-08-09 Alan Modra -- -- PR 6753 -- * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete. -- (main): Don't set_scripts_dir here. -- * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions, -- largely based on ldmain.c versions. -- (ldfile_find_command_file): Set up search in script dir here without -- affecting library search. -- * Makefile.am (ldmain.o): No need to define SCRIPTDIR. -- (ldfile.o): New rule. -- * Makefile.in: Regenerate. -- --2008-08-08 Anatoly Sokolov -- -- * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o, -- and eavr51.o. -- Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c. -- * Makefile.in: Regenerate. -- * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35 -- and avr51. -- * emulparams/avr25.sh: New file. -- * emulparams/avr31.sh: New file. -- * emulparams/avr35.sh: New file. -- * emulparams/avr51.sh: New file. -- --2008-08-08 Richard Sandiford -- Daniel Jacobowitz -- -- * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to... -- (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these -- two variables. -- * emulparams/elf32bmipn32-defs.sh: Likewise. -- * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h. -- (is_mips_elf): New macro. -- (stub_file, stub_bfd): New variables. -- (hook_stub_info): New structure. -- (hook_in_stub): New function. -- (mips_add_stub_section): Likewise. -- (mips_create_output_section_statements): Likewise. -- (mips_before_allocation): Likewise. -- (real_func): New variable. -- (mips_for_each_input_file_wrapper): New function. -- (mips_lang_for_each_input_file): Likewise. -- (lang_for_each_input_file): Define. -- (LDEMUL_BEFORE_ALLOCATION): Likewise. -- (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise. -- --2008-08-08 Alan Modra -- -- * ldfile.c (ldfile_open_file_search): Use concat. -- (try_open): Don't use a fixed size pathname buffer. -- (ldfile_find_command_file): Likewise. -- * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If -- using EXTRA_SHLIB_EXTENSION, don't open twice. -- --2008-08-04 Alan Modra -- -- * Makefile.am (POTFILES.in): Set LC_ALL=C. -- * Makefile.in: Regenerate. -- * po/POTFILES.in: Regenerate. -- --2008-08-03 Alan Modra -- -- * Makefile.am (spu_ovl.o): Merge rule into.. -- (spu_ovl.o_c): ..this one. Only run cpp for spu target. -- * Makefile.in: Regenerate. -- --2008-08-02 Jan Kratochvil -- -- Include the spu_ovl ASCII form in the repository files. -- * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'. -- * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'. -- ($(srcdir)/emultempl/spu_ovl.o_c): New target. -- ($(srcdir)/emultempl/spu_ovl.o): Rename to... -- (spu_ovl.o): ...this one. -- * Makefile.in: Regenerate. -- * emultempl/spu_ovl.o_c: New file. -- * emultempl/spu_ovl.o: File removed. -- --2008-07-31 Takashi Ono -- -- * pe-dll.c (generate_relocs): Don't generate relocs for -- undefined weak symbols. -- --2008-07-31 Jan Kratochvil -- -- * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. -- --2008-07-30 Alan Modra -- -- * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings. -- --2008-07-18 Joseph Myers -- -- * ld.texinfo (--no-wchar-size-warning): Document new ARM option. -- * emultempl/armelf.em (no_wchar_size_warning): New. -- (arm_elf_create_output_section_statements): Pass -- no_wchar_size_warning to arm_elf_create_output_section_statements. -- (OPTION_NO_WCHAR_SIZE_WARNING): New. -- (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning. -- (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning. -- (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning. -- --2008-07-15 Jie Zhang -- -- * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -- --2008-07-12 Craig Silverstein -- -- PR ld/6741 -- * configure.in: Check for, and include, libz.a if it is present. -- * configure: Regenerate. -- * config.in: Regenerate. -- --2008-07-12 Jie Zhang -- -- Revert -- 2008-07-12 Jie Zhang -- * Makefile.am (eelf32bfin.c): Depend on bfin.em. -- (eelf32bfinfd.c): Likewise. -- * Makefile.in: Regenerate. -- * gen-doc.texi: Set Blackfin. -- * ld.texinfo: Document --sep-code and Blackfin specific -- options. -- * ldmain.c (main): Initialize link_info.sep_code. -- * lexsup.c (enum option_values): Add OPTION_SEP_CODE. -- (ld_options[]): Add --sep-code. -- (parse_args): Deal with --sep-code. -- * emulparams/bfin.sh (EXTRA_EM_FILE): Define. -- * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -- * emultempl/bfin.em: New file. -- --2008-07-12 Jie Zhang -- -- * Makefile.am (eelf32bfin.c): Depend on bfin.em. -- (eelf32bfinfd.c): Likewise. -- * Makefile.in: Regenerate. -- * gen-doc.texi: Set Blackfin. -- * ld.texinfo: Document --sep-code and Blackfin specific -- options. -- * ldmain.c (main): Initialize link_info.sep_code. -- * lexsup.c (enum option_values): Add OPTION_SEP_CODE. -- (ld_options[]): Add --sep-code. -- (parse_args): Deal with --sep-code. -- * emulparams/bfin.sh (EXTRA_EM_FILE): Define. -- * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -- * emultempl/bfin.em: New file. -- --2008-07-09 Danny Smith -- -- *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols -- starting with ".". -- Exclude "_IMPORT_DESCRIPTOR_". -- (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA". -- (autofilter_symbollist_generic): Don't check for ".text". -- Exclude "_NULL_IMPORT_DESCRIPTOR". -- (autofilter_symbollist_i386): Likewise. -- --2008-07-07 Alan Modra -- -- * emultempl/armelf.em (elf32_arm_add_stub_section): Use -- bfd_make_section_with_flags. -- * emultempl/avrelf.em (avr_elf_create_output_section_statements): -- Likewise. -- * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise. -- * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise. -- * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise. -- * emultempl/m68kelf.em (m68k_elf_after_open): Likewise. -- * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise. -- * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation): -- Likewise. -- --2008-07-06 Nathan Sidwell -- -- * ld.texinfo (File Commands): Document that INCLUDE can be used in -- several different places. -- * ldgram.y (statement, memory_spec, section): Allow INCLUDE. -- (memory, memory_spec_list): Simplify BNF -- (memory_spec_list_opt): New rule. -- * ldlex.l (INCLUDE): Recognize in EXPRESSION. -- --2008-06-20 Alan Modra -- -- * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not -- build overlay stubs" a fatal error. -- --2008-06-17 Ralf Wildenhues -- -- * config.in: Regenerate. -- * configure: Regenerate. -- --2008-06-17 Alan Modra -- -- * emultempl/spuelf.em (extra_stack_space): New variable. -- (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma. -- (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, -- PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space. -- * emultempl/spu_ovl.S: Mask interrupts during dma and update of -- overlay manager structures. -- * emultempl/spu_ovl.o: Regenerate. -- --2008-06-16 Hans-Peter Nilsson -- -- * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only -- mention it as being special for global symbols. -- --2008-06-12 Nick Clifton -- -- * ldlang.c (print_output_section_statement): If the output section -- statement has an update_dot_tree expression, apply it to -- print_dot. -- (print_input_section): Do not update print_dot if it would move -- print_dot backwards. -- (lang_do_assignments_1): If the output section statement has an -- update_dot_tree expression apply it to dot. -- --2008-06-07 Alan Modra -- -- * NEWS: Mention archive:path patterns. -- * ld.texinfo: Likewise. -- * ldlang.c: Formatting throughout. -- (archive_path): Only assume "[A-Za-z]:" is a dos drive. -- (input_statement_is_archive_path): New function, extracted from.. -- (walk_wild): ..here. -- (walk_wild_consider_section): Match archive:path here too. -- (init_map_userdata, sort_def_symbol): Convert to ISO C. -- * ldmain.c (main): Set link_info.path_separator. -- * emultempl/spuelf.em (choose_target): Don't set it here. -- --2008-06-06 Alan Modra -- -- * ldlang.c (name_match): New function. -- (unique_section_p, walk_wild_consider_section): Use it here. -- (walk_wild_section_general): And here. -- (archive_path): New function. -- (walk_wild): Match archive:path filespecs. -- (open_input_bfds): Don't load archive:path files. -- * emultempl/spuelf.em (choose_target): Set path_separator. -- * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output. -- --2008-06-04 Nick Clifton -- -- * ld.texinfo (Orphan Sections): Fix texi typo. -- --2008-06-04 Chris Metcalf -- -- * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL. -- (ld_options): Add entry for --no-fatal-warnings. -- (parse_args): Handle OPTION_NO_WARN_FATAL. -- * ld.texinfo (Options): Document new command line switch. -- --2008-06-04 Alan Modra -- -- * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg. -- --2008-06-02 Nathan Sidwell -- -- * ldlang.c (closest_target_match): Skip generic big and little -- endian ELF targets. -- --2008-05-31 Evandro Menezes -- -- PR ld/6430 -- * ld.h (enum sort_order): New. -- * ldlang.c (lang_check: Fix comment. -- (lang_common): Sort commons in ascending or descending order. -- (lang_one_common): Likewise. -- * lexsup.c (ld_options): Have --sort-common take an option -- argument. -- (parse_args): Handle argument to --sort-common. -- * ld.texinfo (--sort-common): Document new optional argument. -- * NEWS: Mention new feature. -- --2008-05-28 Christophe Lyon -- -- * ld.texinfo: State that farcalls stubs are supported for ARM-EABI -- only. -- --2008-05-27 Kai Tietz -- -- * pe-dll.c (fill_edata): Make sure we calculate vma's in -- type bfd_vma. -- (generate_reloc): Likewise. -- (pe_implied_import_dll): Likewise. -- --2008-05-21 Nick Clifton -- -- PR ld/6519 -- * ld.texinfo (Orphan Sections): Mention that the linker will -- provide start and stop symbols for orphaned sections if their -- names are valid C identifiers. -- * NEWS: Add an addendum to the description of the linker feature -- for providing orphan section start and end symbols. -- --2008-05-21 Maxim Kuvyrkov -- -- * configure.in (--enable-got): New option. Handle it. -- * configure: Regenerate. -- * config.in: Regenerate. -- * emultempl/m68kelf.em: (got_handling_target_default): New shell -- variable. -- (GOT_HANDLING_TARGET_DEFAULT): New macro. -- (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure -- option if one was given. -- (got_handling): New static variable. -- (elf_m68k_create_output_section_statements): New static function -- implementing hook. -- (PARSE_AND_LIST_PROLOGUE): Define shell variable. -- (OPTION_GOT): New macro. -- (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify -- --got option. -- (got): New linker option. -- (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string -- for --got option. -- (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got -- option. -- * ld.texinfo: Document --got= option. -- * gen-doc.texi: Add M68K. -- * NEWS: Mention the new feature. -- --2008-05-21 Evandro Menezes -- -- PR ld/6430 -- * ld.texinfo (--sort-common): Correct documentation to indicate -- that sorting is performed by alignment, not size, biggest -- alignment first. -- --2008-05-21 Christophe Lyon -- Nick Clifton -- -- * ld.texinfo (ARM): Document --stub-group-size=N option. -- Move description of --pic-veneer option into the ARM section. -- * NEWS: Mention the support for long function calls. -- --2008-05-15 Christophe Lyon -- -- * emultempl/armelf.em (build_section_lists): New function. -- (stub_file): Define. -- (need_laying_out): Define. -- (group_size): Define. -- (hook_stub_info): Define. -- (hook_in_stub): New function. -- (elf32_arm_add_stub_section): New function. -- (gldarm_layout_sections_again): New function. -- (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate -- stubs for long calls if needed. -- (arm_elf_create_output_section_statements): create stub_file bfd. -- (arm_for_each_input_file_wrapper): New function. -- (arm_lang_for_each_input_file): New function. -- (lang_for_each_input_file): Define. -- (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE. -- (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size. -- (PARSE_AND_LIST_OPTIONS): Add option stub-group-size. -- (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case. -- (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish. -- * lang.c (print_input_statement): Skip if bfd has -- BFD_LINKER_CREATED. -- --2008-05-14 Alan Modra -- -- * Makefile.in: Regenerate. -- --2008-05-09 Kai Tietz -- -- ld/PR6502 -- * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead -- of long and change return type to bfd_vma. -- (definfo): Change type of address from long to bfd_vma. -- (set_pep_value): Replace strtoul to strtoull. -- (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long.. -- * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print -- ImageBase. -- (quick_reloc): Change argument address from int to bfd_size_type. -- --2008-05-08 Tom Tromey -- -- * ld.texinfo (PowerPC64 ELF64): Fix typo. -- --2008-05-08 Alan Modra -- -- * elf32_spu.sh (OTHER_SECTIONS): Add "._ea". -- * elf32ppc.sh: If building with spu support, put ".data.spehandle" -- sections at the start of ".data" and provide a symbol to locate -- the directory of embedded spe programs. -- --2008-05-08 Alan Modra -- -- * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct -- MAX_K. -- (fold_binary ): Set expld.result.section to -- current section. Expand comment. Formatting. -- (fold_name ): Set expld.result.section to current section. -- --2008-04-28 Nathan Sidwell -- -- * ldlang.c (lang_size_sections_1): Don't check LMA overflow on -- non-load sections. -- --2008-04-25 Michael Frysinger -- -- * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd -- and targ_extra_emuls to elf32bfin. -- --2008-04-23 Paolo Bonzini -- -- * aclocal.m4: Regenerate. -- * configure: Regenerate. -- --2008-04-03 Kai Tietz -- -- * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__. -- --2008-04-08 Alan Modra -- -- * po/POTFILES.in: Regenerate. -- --2008-04-08 Alan Modra -- -- * emultempl/spuelf.em (auto_overlay, auto_overlay_file, -- auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars. -- (spu_before_allocation): Warn on --auto-overlay and existing overlays. -- (struct tflist, clean_tmp): Move. -- (new_tmp_file): New function, extracted from.. -- (embedded_spu_file): ..here. -- (spu_elf_open_overlay_script, spu_elf_relink): New function. -- (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params. -- Warn on --auto-overlay and zero local store. -- (gld${EMULATION_NAME}_choose_target): New function to stash argv. -- (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK, -- OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE, -- OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define. -- (PARSE_AND_LIST_LONGOPTS): Add entries for new options. -- (PARSE_AND_LIST_OPTIONS): Likewise. -- (PARSE_AND_LIST_ARGS_CASES): Likewise. -- (LDEMUL_CHOOSE_TARGET): Define. -- --2008-04-03 Kai Tietz -- -- PR ld/6026 -- * pe-dll.c (make_head): Fix iat and thunk addend offset. -- --2008-03-31 Nick Clifton -- -- * po/fr.po: Updated French translation. -- --2008-03-24 Ian Lance Taylor -- -- The sha1 code is now in libiberty. -- * sha1.c: Remove. -- * sha1.h: Remove. -- * Makefile.am (CFILES): Remove sha1.c. -- (HFILES): Remove sha1.h. -- (OFILES): Remove sha1.o. -- (ld_new_SOURCES): Remove sha1.c. -- (sha1.o): Remove target. -- * Makefile.in: Rebuild. -- --2008-03-20 Alan Modra -- -- * emultempl/spuelf.em: Update calls to elf32-spu.c funcs. -- --2008-03-17 Ralf Wildenhues -- -- * aclocal.m4: Regenerate. -- * configure: Likewise. -- * Makefile.in: Likewise. -- --2008-03-14 Alan Modra -- -- * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect -- spu_elf_build_stubs with is_spu_target. -- --2008-03-13 Alan Modra -- -- * Makefile.am: Run "make dep-am". -- * Makefile.in: Regenerate. -- * configure: Regenerate. -- --2008-03-06 Joseph Myers -- Roman Zippel -- -- * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define. -- (COMMONPAGESIZE): Define. -- --2008-02-22 Nick Clifton -- -- PR ld/5785 -- * ldlang.c (lang_size_sections_1): Honour the setting of an -- lma_region even if there is no vma region set, or the vma region -- is the same as the lma region. -- --2008-02-18 Nick Clifton -- -- * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a -- relocatable link. -- * scripttempl/elf32cr16.sc: Likewise. -- * scripttempl/elf32cr16c.sc: Likewise. -- * scripttempl/elf32crx.sc: Likewise. -- * scripttempl/elf32sh-symbian.sc: Likewise. -- * scripttempl/elf_chaos.sc: Likewise. -- * scripttempl/elfd10v.sc: Likewise. -- * scripttempl/elfi370.sc: Likewise. -- * scripttempl/elfm68hc11.sc: Likewise. -- * scripttempl/elfm68hc12.sc: Likewise. -- * scripttempl/ip2k.sc: Likewise. -- * scripttempl/iq2000.sc: Likewise. -- * scripttempl/mep.sc: Likewise. -- * scripttempl/v850.sc: Likewise. -- * scripttempl/xstormy16.sc: Likewise. -- --2008-02-16 Alan Modra -- -- PR ld/5761 -- * ldexp.c (fold_name ): Check result of evaluating -- load_base before calling make_abs. -- --2008-02-15 Alan Modra -- -- * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. -- * emultempl/hppaelf.em (hppaelf_create_output_section_statements): -- Likewise. -- * emultempl/ppc64elf.em (ppc_create_output_section_statements): -- Likewise. -- * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all -- uses with.. -- (is_ppc_elf): ..this new macro. -- --2008-02-15 Alan Modra -- -- * ldmain.h (output_bfd): Delete. -- * ldmain.c (output_bfd): Delete. -- Replace all occurrences of output_bfd with link_info.output_bfd. -- * ldcref.c: Likewise. -- * ldctor.c: Likewise. -- * ldemul.c: Likewise. -- * ldexp.c: Likewise. -- * ldfile.c: Likewise. -- * ldlang.c: Likewise. -- * ldmisc.c: Likewise. -- * ldwrite.c: Likewise. -- * pe-dll.c: Likewise. -- * emultempl/aix.em: Likewise. -- * emultempl/alphaelf.em: Likewise. -- * emultempl/armcoff.em: Likewise. -- * emultempl/armelf.em: Likewise. -- * emultempl/avrelf.em: Likewise. -- * emultempl/beos.em: Likewise. -- * emultempl/elf-generic.em: Likewise. -- * emultempl/elf32.em: Likewise. -- * emultempl/gld960.em: Likewise. -- * emultempl/hppaelf.em: Likewise. -- * emultempl/irix.em: Likewise. -- * emultempl/linux.em: Likewise. -- * emultempl/lnk960.em: Likewise. -- * emultempl/m68hc1xelf.em: Likewise. -- * emultempl/mmix-elfnmmo.em: Likewise. -- * emultempl/mmo.em: Likewise. -- * emultempl/pe.em: Likewise. -- * emultempl/pep.em: Likewise. -- * emultempl/ppc32elf.em: Likewise. -- * emultempl/ppc64elf.em: Likewise. -- * emultempl/scoreelf.em: Likewise. -- * emultempl/sh64elf.em: Likewise. -- * emultempl/spuelf.em: Likewise. -- * emultempl/sunos.em: Likewise. -- * emultempl/vanilla.em: Likewise. -- * emultempl/vxworks.em: Likewise. -- * emultempl/xtensaelf.em: Likewise. -- * emultempl/z80.em: Likewise. -- * ldlang.c (open_output): Don't return output, instead write -- link_info_output_bfd directly. -- * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator -- with link_info.output_bfd->xvec. -- * emultempl/hppaelf.em: Likewise. -- * emultempl/ppc32elf.em: Likewise. -- * emultempl/ppc64elf.em: Likewise. -- * emultempl/spuelf.em: Likewise. -- --2008-02-07 Alan Modra -- -- * ldlang.c (new_afile): Don't pass unadorned NULL to concat. -- * ldfile.c (ldfile_add_library_path): Likewise. -- * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise. -- * emultempl/lnk960.em (lnk960_before_parse): Likewise. -- * emultempl/spuelf.em (embedded_spu_file): Likewise. -- --2008-02-07 Alan Modra -- -- * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as -- a "present" bit rather than low bit of .buf. Correct indexing -- into _ovly_buf_table. Use relative loads and stores to access -- overlay manager local vars. -- * emultempl/spu_ovl.o: Regenerate. -- --2008-02-04 H.J. Lu -- -- PR 5715 -- * configure: Regenerated. -- --2008-01-31 Marc Gauthier -- -- * configure.tgt (xtensa*-*-*): Recognize processor variants. -- --2008-01-28 Fabian Groffen -- -- * configure.tgt (x86_64-*-solaris2): Add support for this target. -- --2008-01-28 Vincent Riviere -- -- PR ld/5652 -- * genscripts.sh: Check for the existence of BASH_LINENO not just -- the BASH shell before generating line numbers in the emulation -- file. -- --2008-01-28 Alan Modra -- -- * emultempl/spu_ovl.S: Rewrite. -- * emultempl/spu_ovl.o: Regenerate. -- * emultempl/spuelf.em (toe): Delete. -- (spu_place_special_section): Add param to control section placement. -- Adjust callers. -- (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data -- changes. -- (spu_before_allocation): Adjust spu_elf_size_stubs call. -- (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call. -- --2008-01-25 H.J. Lu -- -- PR ld/5670 -- * ldlang.c (process_insert_statements): Silence gcc 4.1 alias -- warning. -- --2008-01-25 Alan Modra -- -- * ld.texinfo (INSERT): Describe. -- * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete. -- (INSERT_K, AFTER, BEFORE): Add as tokens. -- (ifile_p1): Handle INSERT statements. -- (saved_script_handle, force_make_executable): Move to.. -- * ldmain.c: ..here. -- (previous_script_handle): New global var. -- * ldmain.h (saved_script_handle, force_make_executable): Declare. -- (previous_script_handle): Likewise. -- * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens. -- * lexsup.c (parge_args <-T>): Set previous_script_handle. -- * ldlang.c (lang_for_each_statement_worker): Handle insert statement. -- (map_input_to_output_sections, print_statement): Likewise. -- (lang_size_sections_1, lang_do_assignments_1): Likewise. -- (insert_os_after): New function, extracted from.. -- (lang_insert_orphan): ..here. -- (process_insert_statements): New function. -- (lang_process): Call it. -- (lang_add_insert): New function. -- * ldlang.h (lang_insert_statement_enum): New. -- (lang_insert_statement_type): New. -- (lang_statement_union_type): Add insert_statement. -- (lang_add_insert): Declare. -- --2008-01-18 Bob Wilson -- -- * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id -- changes from elf.sc. -- --2008-01-16 Alan Modra -- -- * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. -- --2008-01-16 Alan Modra -- -- * ldlang.h (lang_afile_asection_pair_statement_enum): Delete. -- (lang_afile_asection_pair_statement_type): Delete. -- (lang_statement_union_type): Delete afile_asection_pair_statement. -- * ldlang.c (lang_insert_orphan): Delete case handling the above. -- (map_input_to_output_sections, print_statement): Likewise. -- --2008-01-15 Kaz Kojima -- -- * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE -- with __data_start. -- * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise. -- --2008-01-15 Alan Modra -- -- PR 5604 -- * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry -- syms to _bfd_elf_gc_keep. -- * emultempl/ppc64elf.em (ppc_before_allocation): Don't call -- ppc64_elf_edit_opd if no_opd_opt. -- --2008-01-11 Tristan Gingold -- Eric Botcazou -- -- * ldlang.c (lang_end): Warns if the entry point is not found when -- --gc-sections. -- Emit an error if no root is specified when --gc-sections -r. -- * ld.texinfo (Options): Document that --gc-sections is compatible -- with -r and -q. -- * ldmain.c (main): Do not error out if -r and --gc-sections. -- * scripttempl/elf.sc: Emit ENTRY command only if relocating. -- --2008-01-10 Daniel Jacobowitz -- -- PR ld/5533 -- * ldlang.c (lang_end): Issue a warning for a missing start symbol -- of a shared library if the symbol was specified on the command -- line. -- --2008-01-10 Alan Modra -- -- * ld.texinfo (--gc-sections): Describe linker behaviour. -- --For older changes see ChangeLog-2007 -+For older changes see ChangeLog-2008 - - Local Variables: - mode: change-log -@@ -828,3 +16,4 @@ - fill-column: 74 - version-control: never - End: -+ -diff -Naur binutils-2.19.orig/ld/ChangeLog-2008 binutils-2.19/ld/ChangeLog-2008 ---- binutils-2.19.orig/ld/ChangeLog-2008 1969-12-31 16:00:00.000000000 -0800 -+++ binutils-2.19/ld/ChangeLog-2008 2009-01-08 06:39:46.000000000 -0800 -@@ -0,0 +1,840 @@ -+2008-12-23 Tristan Gingold -+ -+ * Makefile.am (EXTRA_DIST): Add deffilep.c and deffilep.h -+ * Makefile.in: Regenerate. -+ -+2008-11-14 Alan Modra -+ -+ * Makefile.am (spu_ovl.o_c): Add missing line continuations. -+ * Makefile.in: Regenerate. -+ -+2008-10-05 Alan Modra -+ -+ PR 6943 -+ * scripttempl/avr.sc (.bss): Set lma when relocating. -+ (.bss, .noinit): No need to set vma when relocating. -+ (.text, .bss, ,noinit): Set vma to zero when not relocating. -+ -+2008-09-30 Joseph Myers -+ -+ * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd -+ and .rela.branch_lt. -+ -+2008-09-29 Nick Clifton -+ -+ * po/vi.po: Updated Vietnamese translation. -+ -+2008-09-09 Peter Rosin (tiny change) -+ -+ * emultempl/pe.em (pe_find_data_imports): Add trailing newline -+ to warning message. -+ * emultempl/pep.em (pep_find_data_imports): Likewise. -+ -+2008-09-09 Alan Modra -+ -+ * Makefile.am: Run "make dep-am". -+ * Makefile.in: Regenerate. -+ * po/ld.pot: Regenerate. -+ -+2008-09-09 Alan Modra -+ -+ * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated. -+ * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Ditto. -+ -+2008-09-08 Tristan Gingold -+ -+ * NEWS: Add a marker for the 2.19 features. -+ -+2008-09-07 Alan Modra -+ -+ * ldlang.h (lang_output_section_find): Define. -+ (lang_output_section_statement_lookup): Update prototype. -+ * ldlang.c (lang_output_section_find, -+ lang_output_section_statement_lookup_1): Merge into.. -+ (lang_output_section_statement_lookup): ..here. Update all callers. -+ (process_insert_statements): Set constraint negative -+ for output section statements we might be inserting. Make error -+ fatal on not finding insertion section. -+ (lang_output_section_find): Rather than comparing -+ output_section_statement.constraint against -1, test whether -+ it is postive. -+ (lang_output_section_statement_lookup_1): Likewise. -+ (output_prev_sec_find, strip_excluded_output_sections): Likewise. -+ (lang_record_phdrs): Likewise. -+ * emultempl/elf32.em (output_rel_find): Likewise. -+ * NEWS: Mention INSERT. -+ -+2008-08-26 Nick Clifton -+ -+ PR 6727 -+ * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all -+ input sections in all input bfds and always select the last -+ suitable one, so that interworking stubs are always processed -+ after all other input sections. -+ (arm_elf_before_allocation): Remove redundant use of -+ output_has_begun flag. -+ -+2008-08-24 Alan Modra -+ -+ * configure.in: Update a number of obsolete autoconf macros. -+ * configure: Regenerate. -+ * aclocal.m4: Regenerate. -+ -+2008-08-21 Jan Kratochvil -+ -+ PR ld/6833 -+ * ldexp.c (fold_binary ): Do not align -+ EXPLD.DATASEG.MIN_BASE. -+ * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename -+ OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'. -+ Use OLD_BASE now for the minimal base check after the base decrease by -+ the maximum alignment found. -+ -+2008-08-17 Alan Modra -+ -+ PR 6478 -+ * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols. -+ Don't free symbol pointer array. -+ (check_refs): Likewise. -+ * ldmain.c (warning_callback): Likewise. -+ * ldmisc.c (vfinfo): Likewise. -+ * pe-dll.c (process_def_file): Likewise. -+ (pe_walk_relocs_of_symbol, generate_reloc): Likewise. -+ * emultempl/pe.em (pe_find_data_imports): Likewise. -+ (gld_${EMULATION_NAME}_after_open): Likewise. -+ * emultempl/pep.em (pep_find_data_imports): Likewise. -+ (gld_${EMULATION_NAME}_after_open): Likewise. -+ * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count, -+ passive_position, closed. -+ * ldlang.c (new_afile): Don't set asymbols and symbol_count. -+ * ldmain.c (add_archive_element): xcalloc lang_input_statement_type. -+ -+2008-08-15 Alan Modra -+ -+ PR 6526 -+ * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS. -+ * Makefile.in: Regenerate. -+ * aclocal.m4: Regenerate. -+ * config.in: Regenerate. -+ * configure: Regenerate. -+ -+2008-08-09 Alan Modra -+ -+ PR 6753 -+ * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete. -+ (main): Don't set_scripts_dir here. -+ * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions, -+ largely based on ldmain.c versions. -+ (ldfile_find_command_file): Set up search in script dir here without -+ affecting library search. -+ * Makefile.am (ldmain.o): No need to define SCRIPTDIR. -+ (ldfile.o): New rule. -+ * Makefile.in: Regenerate. -+ -+2008-08-08 Anatoly Sokolov -+ -+ * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o, -+ and eavr51.o. -+ Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c. -+ * Makefile.in: Regenerate. -+ * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35 -+ and avr51. -+ * emulparams/avr25.sh: New file. -+ * emulparams/avr31.sh: New file. -+ * emulparams/avr35.sh: New file. -+ * emulparams/avr51.sh: New file. -+ -+2008-08-08 Richard Sandiford -+ Daniel Jacobowitz -+ -+ * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to... -+ (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these -+ two variables. -+ * emulparams/elf32bmipn32-defs.sh: Likewise. -+ * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h. -+ (is_mips_elf): New macro. -+ (stub_file, stub_bfd): New variables. -+ (hook_stub_info): New structure. -+ (hook_in_stub): New function. -+ (mips_add_stub_section): Likewise. -+ (mips_create_output_section_statements): Likewise. -+ (mips_before_allocation): Likewise. -+ (real_func): New variable. -+ (mips_for_each_input_file_wrapper): New function. -+ (mips_lang_for_each_input_file): Likewise. -+ (lang_for_each_input_file): Define. -+ (LDEMUL_BEFORE_ALLOCATION): Likewise. -+ (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise. -+ -+2008-08-08 Alan Modra -+ -+ * ldfile.c (ldfile_open_file_search): Use concat. -+ (try_open): Don't use a fixed size pathname buffer. -+ (ldfile_find_command_file): Likewise. -+ * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If -+ using EXTRA_SHLIB_EXTENSION, don't open twice. -+ -+2008-08-04 Alan Modra -+ -+ * Makefile.am (POTFILES.in): Set LC_ALL=C. -+ * Makefile.in: Regenerate. -+ * po/POTFILES.in: Regenerate. -+ -+2008-08-03 Alan Modra -+ -+ * Makefile.am (spu_ovl.o): Merge rule into.. -+ (spu_ovl.o_c): ..this one. Only run cpp for spu target. -+ * Makefile.in: Regenerate. -+ -+2008-08-02 Jan Kratochvil -+ -+ Include the spu_ovl ASCII form in the repository files. -+ * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'. -+ * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'. -+ ($(srcdir)/emultempl/spu_ovl.o_c): New target. -+ ($(srcdir)/emultempl/spu_ovl.o): Rename to... -+ (spu_ovl.o): ...this one. -+ * Makefile.in: Regenerate. -+ * emultempl/spu_ovl.o_c: New file. -+ * emultempl/spu_ovl.o: File removed. -+ -+2008-07-31 Takashi Ono -+ -+ * pe-dll.c (generate_relocs): Don't generate relocs for -+ undefined weak symbols. -+ -+2008-07-31 Jan Kratochvil -+ -+ * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'. -+ -+2008-07-30 Alan Modra -+ -+ * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings. -+ -+2008-07-18 Joseph Myers -+ -+ * ld.texinfo (--no-wchar-size-warning): Document new ARM option. -+ * emultempl/armelf.em (no_wchar_size_warning): New. -+ (arm_elf_create_output_section_statements): Pass -+ no_wchar_size_warning to arm_elf_create_output_section_statements. -+ (OPTION_NO_WCHAR_SIZE_WARNING): New. -+ (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning. -+ (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning. -+ (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning. -+ -+2008-07-15 Jie Zhang -+ -+ * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -+ -+2008-07-12 Craig Silverstein -+ -+ PR ld/6741 -+ * configure.in: Check for, and include, libz.a if it is present. -+ * configure: Regenerate. -+ * config.in: Regenerate. -+ -+2008-07-12 Jie Zhang -+ -+ Revert -+ 2008-07-12 Jie Zhang -+ * Makefile.am (eelf32bfin.c): Depend on bfin.em. -+ (eelf32bfinfd.c): Likewise. -+ * Makefile.in: Regenerate. -+ * gen-doc.texi: Set Blackfin. -+ * ld.texinfo: Document --sep-code and Blackfin specific -+ options. -+ * ldmain.c (main): Initialize link_info.sep_code. -+ * lexsup.c (enum option_values): Add OPTION_SEP_CODE. -+ (ld_options[]): Add --sep-code. -+ (parse_args): Deal with --sep-code. -+ * emulparams/bfin.sh (EXTRA_EM_FILE): Define. -+ * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -+ * emultempl/bfin.em: New file. -+ -+2008-07-12 Jie Zhang -+ -+ * Makefile.am (eelf32bfin.c): Depend on bfin.em. -+ (eelf32bfinfd.c): Likewise. -+ * Makefile.in: Regenerate. -+ * gen-doc.texi: Set Blackfin. -+ * ld.texinfo: Document --sep-code and Blackfin specific -+ options. -+ * ldmain.c (main): Initialize link_info.sep_code. -+ * lexsup.c (enum option_values): Add OPTION_SEP_CODE. -+ (ld_options[]): Add --sep-code. -+ (parse_args): Deal with --sep-code. -+ * emulparams/bfin.sh (EXTRA_EM_FILE): Define. -+ * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define. -+ * emultempl/bfin.em: New file. -+ -+2008-07-09 Danny Smith -+ -+ *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols -+ starting with ".". -+ Exclude "_IMPORT_DESCRIPTOR_". -+ (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA". -+ (autofilter_symbollist_generic): Don't check for ".text". -+ Exclude "_NULL_IMPORT_DESCRIPTOR". -+ (autofilter_symbollist_i386): Likewise. -+ -+2008-07-07 Alan Modra -+ -+ * emultempl/armelf.em (elf32_arm_add_stub_section): Use -+ bfd_make_section_with_flags. -+ * emultempl/avrelf.em (avr_elf_create_output_section_statements): -+ Likewise. -+ * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise. -+ * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise. -+ * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise. -+ * emultempl/m68kelf.em (m68k_elf_after_open): Likewise. -+ * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise. -+ * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation): -+ Likewise. -+ -+2008-07-06 Nathan Sidwell -+ -+ * ld.texinfo (File Commands): Document that INCLUDE can be used in -+ several different places. -+ * ldgram.y (statement, memory_spec, section): Allow INCLUDE. -+ (memory, memory_spec_list): Simplify BNF -+ (memory_spec_list_opt): New rule. -+ * ldlex.l (INCLUDE): Recognize in EXPRESSION. -+ -+2008-06-20 Alan Modra -+ -+ * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not -+ build overlay stubs" a fatal error. -+ -+2008-06-17 Ralf Wildenhues -+ -+ * config.in: Regenerate. -+ * configure: Regenerate. -+ -+2008-06-17 Alan Modra -+ -+ * emultempl/spuelf.em (extra_stack_space): New variable. -+ (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma. -+ (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS, -+ PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space. -+ * emultempl/spu_ovl.S: Mask interrupts during dma and update of -+ overlay manager structures. -+ * emultempl/spu_ovl.o: Regenerate. -+ -+2008-06-16 Hans-Peter Nilsson -+ -+ * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only -+ mention it as being special for global symbols. -+ -+2008-06-12 Nick Clifton -+ -+ * ldlang.c (print_output_section_statement): If the output section -+ statement has an update_dot_tree expression, apply it to -+ print_dot. -+ (print_input_section): Do not update print_dot if it would move -+ print_dot backwards. -+ (lang_do_assignments_1): If the output section statement has an -+ update_dot_tree expression apply it to dot. -+ -+2008-06-07 Alan Modra -+ -+ * NEWS: Mention archive:path patterns. -+ * ld.texinfo: Likewise. -+ * ldlang.c: Formatting throughout. -+ (archive_path): Only assume "[A-Za-z]:" is a dos drive. -+ (input_statement_is_archive_path): New function, extracted from.. -+ (walk_wild): ..here. -+ (walk_wild_consider_section): Match archive:path here too. -+ (init_map_userdata, sort_def_symbol): Convert to ISO C. -+ * ldmain.c (main): Set link_info.path_separator. -+ * emultempl/spuelf.em (choose_target): Don't set it here. -+ -+2008-06-06 Alan Modra -+ -+ * ldlang.c (name_match): New function. -+ (unique_section_p, walk_wild_consider_section): Use it here. -+ (walk_wild_section_general): And here. -+ (archive_path): New function. -+ (walk_wild): Match archive:path filespecs. -+ (open_input_bfds): Don't load archive:path files. -+ * emultempl/spuelf.em (choose_target): Set path_separator. -+ * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output. -+ -+2008-06-04 Nick Clifton -+ -+ * ld.texinfo (Orphan Sections): Fix texi typo. -+ -+2008-06-04 Chris Metcalf -+ -+ * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL. -+ (ld_options): Add entry for --no-fatal-warnings. -+ (parse_args): Handle OPTION_NO_WARN_FATAL. -+ * ld.texinfo (Options): Document new command line switch. -+ -+2008-06-04 Alan Modra -+ -+ * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg. -+ -+2008-06-02 Nathan Sidwell -+ -+ * ldlang.c (closest_target_match): Skip generic big and little -+ endian ELF targets. -+ -+2008-05-31 Evandro Menezes -+ -+ PR ld/6430 -+ * ld.h (enum sort_order): New. -+ * ldlang.c (lang_check: Fix comment. -+ (lang_common): Sort commons in ascending or descending order. -+ (lang_one_common): Likewise. -+ * lexsup.c (ld_options): Have --sort-common take an option -+ argument. -+ (parse_args): Handle argument to --sort-common. -+ * ld.texinfo (--sort-common): Document new optional argument. -+ * NEWS: Mention new feature. -+ -+2008-05-28 Christophe Lyon -+ -+ * ld.texinfo: State that farcalls stubs are supported for ARM-EABI -+ only. -+ -+2008-05-27 Kai Tietz -+ -+ * pe-dll.c (fill_edata): Make sure we calculate vma's in -+ type bfd_vma. -+ (generate_reloc): Likewise. -+ (pe_implied_import_dll): Likewise. -+ -+2008-05-21 Nick Clifton -+ -+ PR ld/6519 -+ * ld.texinfo (Orphan Sections): Mention that the linker will -+ provide start and stop symbols for orphaned sections if their -+ names are valid C identifiers. -+ * NEWS: Add an addendum to the description of the linker feature -+ for providing orphan section start and end symbols. -+ -+2008-05-21 Maxim Kuvyrkov -+ -+ * configure.in (--enable-got): New option. Handle it. -+ * configure: Regenerate. -+ * config.in: Regenerate. -+ * emultempl/m68kelf.em: (got_handling_target_default): New shell -+ variable. -+ (GOT_HANDLING_TARGET_DEFAULT): New macro. -+ (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure -+ option if one was given. -+ (got_handling): New static variable. -+ (elf_m68k_create_output_section_statements): New static function -+ implementing hook. -+ (PARSE_AND_LIST_PROLOGUE): Define shell variable. -+ (OPTION_GOT): New macro. -+ (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify -+ --got option. -+ (got): New linker option. -+ (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string -+ for --got option. -+ (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got -+ option. -+ * ld.texinfo: Document --got= option. -+ * gen-doc.texi: Add M68K. -+ * NEWS: Mention the new feature. -+ -+2008-05-21 Evandro Menezes -+ -+ PR ld/6430 -+ * ld.texinfo (--sort-common): Correct documentation to indicate -+ that sorting is performed by alignment, not size, biggest -+ alignment first. -+ -+2008-05-21 Christophe Lyon -+ Nick Clifton -+ -+ * ld.texinfo (ARM): Document --stub-group-size=N option. -+ Move description of --pic-veneer option into the ARM section. -+ * NEWS: Mention the support for long function calls. -+ -+2008-05-15 Christophe Lyon -+ -+ * emultempl/armelf.em (build_section_lists): New function. -+ (stub_file): Define. -+ (need_laying_out): Define. -+ (group_size): Define. -+ (hook_stub_info): Define. -+ (hook_in_stub): New function. -+ (elf32_arm_add_stub_section): New function. -+ (gldarm_layout_sections_again): New function. -+ (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate -+ stubs for long calls if needed. -+ (arm_elf_create_output_section_statements): create stub_file bfd. -+ (arm_for_each_input_file_wrapper): New function. -+ (arm_lang_for_each_input_file): New function. -+ (lang_for_each_input_file): Define. -+ (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE. -+ (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size. -+ (PARSE_AND_LIST_OPTIONS): Add option stub-group-size. -+ (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case. -+ (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish. -+ * lang.c (print_input_statement): Skip if bfd has -+ BFD_LINKER_CREATED. -+ -+2008-05-14 Alan Modra -+ -+ * Makefile.in: Regenerate. -+ -+2008-05-09 Kai Tietz -+ -+ ld/PR6502 -+ * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead -+ of long and change return type to bfd_vma. -+ (definfo): Change type of address from long to bfd_vma. -+ (set_pep_value): Replace strtoul to strtoull. -+ (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long.. -+ * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print -+ ImageBase. -+ (quick_reloc): Change argument address from int to bfd_size_type. -+ -+2008-05-08 Tom Tromey -+ -+ * ld.texinfo (PowerPC64 ELF64): Fix typo. -+ -+2008-05-08 Alan Modra -+ -+ * elf32_spu.sh (OTHER_SECTIONS): Add "._ea". -+ * elf32ppc.sh: If building with spu support, put ".data.spehandle" -+ sections at the start of ".data" and provide a symbol to locate -+ the directory of embedded spe programs. -+ -+2008-05-08 Alan Modra -+ -+ * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct -+ MAX_K. -+ (fold_binary ): Set expld.result.section to -+ current section. Expand comment. Formatting. -+ (fold_name ): Set expld.result.section to current section. -+ -+2008-04-28 Nathan Sidwell -+ -+ * ldlang.c (lang_size_sections_1): Don't check LMA overflow on -+ non-load sections. -+ -+2008-04-25 Michael Frysinger -+ -+ * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd -+ and targ_extra_emuls to elf32bfin. -+ -+2008-04-23 Paolo Bonzini -+ -+ * aclocal.m4: Regenerate. -+ * configure: Regenerate. -+ -+2008-04-03 Kai Tietz -+ -+ * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__. -+ -+2008-04-08 Alan Modra -+ -+ * po/POTFILES.in: Regenerate. -+ -+2008-04-08 Alan Modra -+ -+ * emultempl/spuelf.em (auto_overlay, auto_overlay_file, -+ auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars. -+ (spu_before_allocation): Warn on --auto-overlay and existing overlays. -+ (struct tflist, clean_tmp): Move. -+ (new_tmp_file): New function, extracted from.. -+ (embedded_spu_file): ..here. -+ (spu_elf_open_overlay_script, spu_elf_relink): New function. -+ (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params. -+ Warn on --auto-overlay and zero local store. -+ (gld${EMULATION_NAME}_choose_target): New function to stash argv. -+ (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK, -+ OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE, -+ OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define. -+ (PARSE_AND_LIST_LONGOPTS): Add entries for new options. -+ (PARSE_AND_LIST_OPTIONS): Likewise. -+ (PARSE_AND_LIST_ARGS_CASES): Likewise. -+ (LDEMUL_CHOOSE_TARGET): Define. -+ -+2008-04-03 Kai Tietz -+ -+ PR ld/6026 -+ * pe-dll.c (make_head): Fix iat and thunk addend offset. -+ -+2008-03-31 Nick Clifton -+ -+ * po/fr.po: Updated French translation. -+ -+2008-03-24 Ian Lance Taylor -+ -+ The sha1 code is now in libiberty. -+ * sha1.c: Remove. -+ * sha1.h: Remove. -+ * Makefile.am (CFILES): Remove sha1.c. -+ (HFILES): Remove sha1.h. -+ (OFILES): Remove sha1.o. -+ (ld_new_SOURCES): Remove sha1.c. -+ (sha1.o): Remove target. -+ * Makefile.in: Rebuild. -+ -+2008-03-20 Alan Modra -+ -+ * emultempl/spuelf.em: Update calls to elf32-spu.c funcs. -+ -+2008-03-17 Ralf Wildenhues -+ -+ * aclocal.m4: Regenerate. -+ * configure: Likewise. -+ * Makefile.in: Likewise. -+ -+2008-03-14 Alan Modra -+ -+ * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect -+ spu_elf_build_stubs with is_spu_target. -+ -+2008-03-13 Alan Modra -+ -+ * Makefile.am: Run "make dep-am". -+ * Makefile.in: Regenerate. -+ * configure: Regenerate. -+ -+2008-03-06 Joseph Myers -+ Roman Zippel -+ -+ * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define. -+ (COMMONPAGESIZE): Define. -+ -+2008-02-22 Nick Clifton -+ -+ PR ld/5785 -+ * ldlang.c (lang_size_sections_1): Honour the setting of an -+ lma_region even if there is no vma region set, or the vma region -+ is the same as the lma region. -+ -+2008-02-18 Nick Clifton -+ -+ * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a -+ relocatable link. -+ * scripttempl/elf32cr16.sc: Likewise. -+ * scripttempl/elf32cr16c.sc: Likewise. -+ * scripttempl/elf32crx.sc: Likewise. -+ * scripttempl/elf32sh-symbian.sc: Likewise. -+ * scripttempl/elf_chaos.sc: Likewise. -+ * scripttempl/elfd10v.sc: Likewise. -+ * scripttempl/elfi370.sc: Likewise. -+ * scripttempl/elfm68hc11.sc: Likewise. -+ * scripttempl/elfm68hc12.sc: Likewise. -+ * scripttempl/ip2k.sc: Likewise. -+ * scripttempl/iq2000.sc: Likewise. -+ * scripttempl/mep.sc: Likewise. -+ * scripttempl/v850.sc: Likewise. -+ * scripttempl/xstormy16.sc: Likewise. -+ -+2008-02-16 Alan Modra -+ -+ PR ld/5761 -+ * ldexp.c (fold_name ): Check result of evaluating -+ load_base before calling make_abs. -+ -+2008-02-15 Alan Modra -+ -+ * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id. -+ * emultempl/hppaelf.em (hppaelf_create_output_section_statements): -+ Likewise. -+ * emultempl/ppc64elf.em (ppc_create_output_section_statements): -+ Likewise. -+ * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all -+ uses with.. -+ (is_ppc_elf): ..this new macro. -+ -+2008-02-15 Alan Modra -+ -+ * ldmain.h (output_bfd): Delete. -+ * ldmain.c (output_bfd): Delete. -+ Replace all occurrences of output_bfd with link_info.output_bfd. -+ * ldcref.c: Likewise. -+ * ldctor.c: Likewise. -+ * ldemul.c: Likewise. -+ * ldexp.c: Likewise. -+ * ldfile.c: Likewise. -+ * ldlang.c: Likewise. -+ * ldmisc.c: Likewise. -+ * ldwrite.c: Likewise. -+ * pe-dll.c: Likewise. -+ * emultempl/aix.em: Likewise. -+ * emultempl/alphaelf.em: Likewise. -+ * emultempl/armcoff.em: Likewise. -+ * emultempl/armelf.em: Likewise. -+ * emultempl/avrelf.em: Likewise. -+ * emultempl/beos.em: Likewise. -+ * emultempl/elf-generic.em: Likewise. -+ * emultempl/elf32.em: Likewise. -+ * emultempl/gld960.em: Likewise. -+ * emultempl/hppaelf.em: Likewise. -+ * emultempl/irix.em: Likewise. -+ * emultempl/linux.em: Likewise. -+ * emultempl/lnk960.em: Likewise. -+ * emultempl/m68hc1xelf.em: Likewise. -+ * emultempl/mmix-elfnmmo.em: Likewise. -+ * emultempl/mmo.em: Likewise. -+ * emultempl/pe.em: Likewise. -+ * emultempl/pep.em: Likewise. -+ * emultempl/ppc32elf.em: Likewise. -+ * emultempl/ppc64elf.em: Likewise. -+ * emultempl/scoreelf.em: Likewise. -+ * emultempl/sh64elf.em: Likewise. -+ * emultempl/spuelf.em: Likewise. -+ * emultempl/sunos.em: Likewise. -+ * emultempl/vanilla.em: Likewise. -+ * emultempl/vxworks.em: Likewise. -+ * emultempl/xtensaelf.em: Likewise. -+ * emultempl/z80.em: Likewise. -+ * ldlang.c (open_output): Don't return output, instead write -+ link_info_output_bfd directly. -+ * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator -+ with link_info.output_bfd->xvec. -+ * emultempl/hppaelf.em: Likewise. -+ * emultempl/ppc32elf.em: Likewise. -+ * emultempl/ppc64elf.em: Likewise. -+ * emultempl/spuelf.em: Likewise. -+ -+2008-02-07 Alan Modra -+ -+ * ldlang.c (new_afile): Don't pass unadorned NULL to concat. -+ * ldfile.c (ldfile_add_library_path): Likewise. -+ * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise. -+ * emultempl/lnk960.em (lnk960_before_parse): Likewise. -+ * emultempl/spuelf.em (embedded_spu_file): Likewise. -+ -+2008-02-07 Alan Modra -+ -+ * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as -+ a "present" bit rather than low bit of .buf. Correct indexing -+ into _ovly_buf_table. Use relative loads and stores to access -+ overlay manager local vars. -+ * emultempl/spu_ovl.o: Regenerate. -+ -+2008-02-04 H.J. Lu -+ -+ PR 5715 -+ * configure: Regenerated. -+ -+2008-01-31 Marc Gauthier -+ -+ * configure.tgt (xtensa*-*-*): Recognize processor variants. -+ -+2008-01-28 Fabian Groffen -+ -+ * configure.tgt (x86_64-*-solaris2): Add support for this target. -+ -+2008-01-28 Vincent Riviere -+ -+ PR ld/5652 -+ * genscripts.sh: Check for the existence of BASH_LINENO not just -+ the BASH shell before generating line numbers in the emulation -+ file. -+ -+2008-01-28 Alan Modra -+ -+ * emultempl/spu_ovl.S: Rewrite. -+ * emultempl/spu_ovl.o: Regenerate. -+ * emultempl/spuelf.em (toe): Delete. -+ (spu_place_special_section): Add param to control section placement. -+ Adjust callers. -+ (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data -+ changes. -+ (spu_before_allocation): Adjust spu_elf_size_stubs call. -+ (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call. -+ -+2008-01-25 H.J. Lu -+ -+ PR ld/5670 -+ * ldlang.c (process_insert_statements): Silence gcc 4.1 alias -+ warning. -+ -+2008-01-25 Alan Modra -+ -+ * ld.texinfo (INSERT): Describe. -+ * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete. -+ (INSERT_K, AFTER, BEFORE): Add as tokens. -+ (ifile_p1): Handle INSERT statements. -+ (saved_script_handle, force_make_executable): Move to.. -+ * ldmain.c: ..here. -+ (previous_script_handle): New global var. -+ * ldmain.h (saved_script_handle, force_make_executable): Declare. -+ (previous_script_handle): Likewise. -+ * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens. -+ * lexsup.c (parge_args <-T>): Set previous_script_handle. -+ * ldlang.c (lang_for_each_statement_worker): Handle insert statement. -+ (map_input_to_output_sections, print_statement): Likewise. -+ (lang_size_sections_1, lang_do_assignments_1): Likewise. -+ (insert_os_after): New function, extracted from.. -+ (lang_insert_orphan): ..here. -+ (process_insert_statements): New function. -+ (lang_process): Call it. -+ (lang_add_insert): New function. -+ * ldlang.h (lang_insert_statement_enum): New. -+ (lang_insert_statement_type): New. -+ (lang_statement_union_type): Add insert_statement. -+ (lang_add_insert): Declare. -+ -+2008-01-18 Bob Wilson -+ -+ * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id -+ changes from elf.sc. -+ -+2008-01-16 Alan Modra -+ -+ * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test. -+ -+2008-01-16 Alan Modra -+ -+ * ldlang.h (lang_afile_asection_pair_statement_enum): Delete. -+ (lang_afile_asection_pair_statement_type): Delete. -+ (lang_statement_union_type): Delete afile_asection_pair_statement. -+ * ldlang.c (lang_insert_orphan): Delete case handling the above. -+ (map_input_to_output_sections, print_statement): Likewise. -+ -+2008-01-15 Kaz Kojima -+ -+ * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE -+ with __data_start. -+ * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise. -+ -+2008-01-15 Alan Modra -+ -+ PR 5604 -+ * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry -+ syms to _bfd_elf_gc_keep. -+ * emultempl/ppc64elf.em (ppc_before_allocation): Don't call -+ ppc64_elf_edit_opd if no_opd_opt. -+ -+2008-01-11 Tristan Gingold -+ Eric Botcazou -+ -+ * ldlang.c (lang_end): Warns if the entry point is not found when -+ --gc-sections. -+ Emit an error if no root is specified when --gc-sections -r. -+ * ld.texinfo (Options): Document that --gc-sections is compatible -+ with -r and -q. -+ * ldmain.c (main): Do not error out if -r and --gc-sections. -+ * scripttempl/elf.sc: Emit ENTRY command only if relocating. -+ -+2008-01-10 Daniel Jacobowitz -+ -+ PR ld/5533 -+ * ldlang.c (lang_end): Issue a warning for a missing start symbol -+ of a shared library if the symbol was specified on the command -+ line. -+ -+2008-01-10 Alan Modra -+ -+ * ld.texinfo (--gc-sections): Describe linker behaviour. -+ -+For older changes see ChangeLog-2007 -+ -+Local Variables: -+mode: change-log -+left-margin: 8 -+fill-column: 74 -+version-control: never -+End: -diff -Naur binutils-2.19.orig/ld/Makefile.am binutils-2.19/ld/Makefile.am ---- binutils-2.19.orig/ld/Makefile.am 2008-09-09 01:02:19.000000000 -0700 -+++ binutils-2.19/ld/Makefile.am 2008-12-23 05:56:10.000000000 -0800 -@@ -758,9 +758,9 @@ - $(srcdir)/emultempl/spu_ovl.o_c: @MAINT@ $(srcdir)/emultempl/spu_ovl.S - if ../gas/as-new --version \ - | grep 'target.*spu' >/dev/null 2>/dev/null; then \ -- cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s -+ cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s; \ - ../gas/as-new -o spu_ovl.o spu_ovl.s; \ -- ../binutils/bin2c $@ -+ ../binutils/bin2c $@; \ - fi - eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \ - $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -@@ -1914,7 +1914,8 @@ - - # Stuff that should be included in a distribution. The diststuff - # target is run by the taz target in ../Makefile.in. --EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.o_c $(man_MANS) -+EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.o_c \ -+ deffilep.c deffilep.h $(man_MANS) - diststuff: info $(EXTRA_DIST) - all: info ld.1 - -diff -Naur binutils-2.19.orig/ld/Makefile.in binutils-2.19/ld/Makefile.in ---- binutils-2.19.orig/ld/Makefile.in 2008-09-09 01:02:19.000000000 -0700 -+++ binutils-2.19/ld/Makefile.in 2008-12-23 05:56:10.000000000 -0800 -@@ -730,7 +730,9 @@ - - # Stuff that should be included in a distribution. The diststuff - # target is run by the taz target in ../Makefile.in. --EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.o_c $(man_MANS) -+EXTRA_DIST = ldgram.c ldgram.h ldlex.c emultempl/spu_ovl.o_c \ -+ deffilep.c deffilep.h $(man_MANS) -+ - DISTCLEANFILES = tdirs site.exp site.bak stringify.sed $(am__append_1) - all: config.h - $(MAKE) $(AM_MAKEFLAGS) all-recursive -@@ -1588,9 +1590,9 @@ - $(srcdir)/emultempl/spu_ovl.o_c: @MAINT@ $(srcdir)/emultempl/spu_ovl.S - if ../gas/as-new --version \ - | grep 'target.*spu' >/dev/null 2>/dev/null; then \ -- cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s -+ cpp -DOVLY_IRQ_SAVE $(srcdir)/emultempl/spu_ovl.S spu_ovl.s; \ - ../gas/as-new -o spu_ovl.o spu_ovl.s; \ -- ../binutils/bin2c $@ -+ ../binutils/bin2c $@; \ - fi - eelf32_i860.c: $(srcdir)/emulparams/elf32_i860.sh \ - $(ELF_GEN_DEPS) $(srcdir)/scripttempl/elf.sc ${GEN_DEPENDS} -diff -Naur binutils-2.19.orig/ld/pe-dll.c binutils-2.19/ld/pe-dll.c ---- binutils-2.19.orig/ld/pe-dll.c 2008-08-16 20:12:50.000000000 -0700 -+++ binutils-2.19/ld/pe-dll.c 2009-01-08 06:39:45.000000000 -0800 -@@ -1,6 +1,6 @@ - /* Routines to help build PEI-format DLLs (Win32 etc) - Copyright 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -- 2008 Free Software Foundation, Inc. -+ 2008, 2009 Free Software Foundation, Inc. - Written by DJ Delorie - - This file is part of the GNU Binutils. -@@ -314,6 +314,7 @@ - { STRING_COMMA_LEN ("libcegcc") }, - { STRING_COMMA_LEN ("libcygwin") }, - { STRING_COMMA_LEN ("libgcc") }, -+ { STRING_COMMA_LEN ("libgcc_s") }, - { STRING_COMMA_LEN ("libstdc++") }, - { STRING_COMMA_LEN ("libmingw32") }, - { STRING_COMMA_LEN ("libmingwex") }, -@@ -324,6 +325,37 @@ - { NULL, 0 } - }; - -+/* Regardless of the suffix issue mentioned above, we must ensure that -+ we do not falsely match on a leading substring, such as when libtool -+ builds libstdc++ as a DLL using libsupc++convenience.a as an intermediate. -+ This routine ensures that the leading part of the name matches and that -+ it is followed by only an optional version suffix and a file extension, -+ returning zero if so or -1 if not. */ -+static int libnamencmp (const char *libname, const autofilter_entry_type *afptr) -+{ -+ if (strncmp (libname, afptr->name, afptr->len)) -+ return -1; -+ -+ libname += afptr->len; -+ -+ /* Be liberal in interpreting what counts as a version suffix; we -+ accept anything that has a dash to separate it from the name and -+ begins with a digit. */ -+ if (libname[0] == '-') -+ { -+ if (!ISDIGIT (*++libname)) -+ return -1; -+ /* Ensure the filename has an extension. */ -+ while (*++libname != '.') -+ if (!*libname) -+ return -1; -+ } -+ else if (libname[0] != '.') -+ return -1; -+ -+ return 0; -+} -+ - static const autofilter_entry_type autofilter_objlist[] = - { - { STRING_COMMA_LEN ("crt0.o") }, -@@ -501,7 +533,7 @@ - - while (afptr->name) - { -- if (strncmp (libname, afptr->name, afptr->len) == 0 ) -+ if (libnamencmp (libname, afptr) == 0 ) - return 0; - afptr++; - } -diff -Naur binutils-2.19.orig/ld/testsuite/ChangeLog binutils-2.19/ld/testsuite/ChangeLog ---- binutils-2.19.orig/ld/testsuite/ChangeLog 2008-10-02 03:08:04.000000000 -0700 -+++ binutils-2.19/ld/testsuite/ChangeLog 2009-01-14 01:13:49.000000000 -0800 -@@ -1,3 +1,8 @@ -+2009-01-14 Joseph Myers -+ -+ * ld-arm/thumb2-bl-undefweak.d, ld-arm/thumb2-bl-undefweak.s: New. -+ * ld-arm/arm-elf.exp: Run thumb2-bl-undefweak test. -+ - 2008-09-30 Alan Modra - - * ld-elf/extract-symbol-1sec.d: Correct section lma. -diff -Naur binutils-2.19.orig/ld/testsuite/ld-arm/arm-elf.exp binutils-2.19/ld/testsuite/ld-arm/arm-elf.exp ---- binutils-2.19.orig/ld/testsuite/ld-arm/arm-elf.exp 2008-08-26 04:46:41.000000000 -0700 -+++ binutils-2.19/ld/testsuite/ld-arm/arm-elf.exp 2009-01-14 01:13:49.000000000 -0800 -@@ -184,6 +184,7 @@ - run_dump_test "group-relocs-ldr-bad" - run_dump_test "group-relocs-ldrs-bad" - run_dump_test "group-relocs-ldc-bad" -+run_dump_test "thumb2-bl-undefweak" - run_dump_test "emit-relocs1" - - # Exclude non-ARM-EABI targets. -diff -Naur binutils-2.19.orig/opcodes/ChangeLog binutils-2.19/opcodes/ChangeLog ---- binutils-2.19.orig/opcodes/ChangeLog 2008-10-02 01:07:19.000000000 -0700 -+++ binutils-2.19/opcodes/ChangeLog 2008-11-27 02:51:53.000000000 -0800 -@@ -1,3 +1,20 @@ -+2008-11-27 Alan Modra -+ -+ * ppc-opc.c (extract_sprg): Correct operand range check. -+ -+2008-11-26 Andreas Schwab -+ -+ * m68k-dis.c (NEXTBYTE, NEXTWORD, NEXTLONG, NEXTULONG, NEXTSINGLE) -+ (NEXTDOUBLE, NEXTEXTEND, NEXTPACKED): Fix error handling. -+ (save_printer, save_print_address): Remove. -+ (fetch_data): Don't use them. -+ (match_insn_m68k): Always restore printing functions. -+ (print_insn_m68k): Don't save/restore printing functions. -+ -+2008-11-25 Nick Clifton -+ -+ * m68k-dis.c: Rewrite to remove use of setjmp/longjmp. -+ - 2008-09-29 Nick Clifton - - * po/vi.po: Updated Vietnamese translation. -diff -Naur binutils-2.19.orig/opcodes/m68k-dis.c binutils-2.19/opcodes/m68k-dis.c ---- binutils-2.19.orig/opcodes/m68k-dis.c 2007-09-27 04:14:10.000000000 -0700 -+++ binutils-2.19/opcodes/m68k-dis.c 2008-11-26 02:45:27.000000000 -0800 -@@ -60,46 +60,103 @@ - #endif - - /* Get a 1 byte signed integer. */ --#define NEXTBYTE(p) (p += 2, FETCH_DATA (info, p), COERCE_SIGNED_CHAR(p[-1])) -+#define NEXTBYTE(p, val) \ -+ do \ -+ { \ -+ p += 2; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ val = COERCE_SIGNED_CHAR (p[-1]); \ -+ } \ -+ while (0) - - /* Get a 2 byte signed integer. */ - #define COERCE16(x) ((int) (((x) ^ 0x8000) - 0x8000)) --#define NEXTWORD(p) \ -- (p += 2, FETCH_DATA (info, p), \ -- COERCE16 ((p[-2] << 8) + p[-1])) -+ -+#define NEXTWORD(p, val, ret_val) \ -+ do \ -+ { \ -+ p += 2; \ -+ if (!FETCH_DATA (info, p)) \ -+ return ret_val; \ -+ val = COERCE16 ((p[-2] << 8) + p[-1]); \ -+ } \ -+ while (0) - - /* Get a 4 byte signed integer. */ - #define COERCE32(x) ((bfd_signed_vma) ((x) ^ 0x80000000) - 0x80000000) --#define NEXTLONG(p) \ -- (p += 4, FETCH_DATA (info, p), \ -- (COERCE32 ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]))) -+ -+#define NEXTLONG(p, val, ret_val) \ -+ do \ -+ { \ -+ p += 4; \ -+ if (!FETCH_DATA (info, p)) \ -+ return ret_val; \ -+ val = COERCE32 ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]); \ -+ } \ -+ while (0) - - /* Get a 4 byte unsigned integer. */ --#define NEXTULONG(p) \ -- (p += 4, FETCH_DATA (info, p), \ -- (unsigned int) ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1])) -+#define NEXTULONG(p, val) \ -+ do \ -+ { \ -+ p += 4; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ val = (unsigned int) ((((((p[-4] << 8) + p[-3]) << 8) + p[-2]) << 8) + p[-1]); \ -+ } \ -+ while (0) - - /* Get a single precision float. */ --#define NEXTSINGLE(val, p) \ -- (p += 4, FETCH_DATA (info, p), \ -- floatformat_to_double (&floatformat_ieee_single_big, (char *) p - 4, &val)) -+#define NEXTSINGLE(val, p) \ -+ do \ -+ { \ -+ p += 4; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ floatformat_to_double (& floatformat_ieee_single_big, \ -+ (char *) p - 4, & val); \ -+ } \ -+ while (0) - - /* Get a double precision float. */ --#define NEXTDOUBLE(val, p) \ -- (p += 8, FETCH_DATA (info, p), \ -- floatformat_to_double (&floatformat_ieee_double_big, (char *) p - 8, &val)) -+#define NEXTDOUBLE(val, p) \ -+ do \ -+ { \ -+ p += 8; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ floatformat_to_double (& floatformat_ieee_double_big, \ -+ (char *) p - 8, & val); \ -+ } \ -+ while (0) - - /* Get an extended precision float. */ --#define NEXTEXTEND(val, p) \ -- (p += 12, FETCH_DATA (info, p), \ -- floatformat_to_double (&floatformat_m68881_ext, (char *) p - 12, &val)) -+#define NEXTEXTEND(val, p) \ -+ do \ -+ { \ -+ p += 12; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ floatformat_to_double (& floatformat_m68881_ext, \ -+ (char *) p - 12, & val); \ -+ } \ -+ while (0) - - /* Need a function to convert from packed to double - precision. Actually, it's easier to print a - packed number than a double anyway, so maybe - there should be a special case to handle this... */ --#define NEXTPACKED(p) \ -- (p += 12, FETCH_DATA (info, p), 0.0) -+#define NEXTPACKED(p, val) \ -+ do \ -+ { \ -+ p += 12; \ -+ if (!FETCH_DATA (info, p)) \ -+ return -3; \ -+ val = 0.0; \ -+ } \ -+ while (0) -+ - - /* Maximum length of an instruction. */ - #define MAXLEN 22 -@@ -112,12 +169,10 @@ - bfd_byte *max_fetched; - bfd_byte the_buffer[MAXLEN]; - bfd_vma insn_start; -- jmp_buf bailout; - }; - - /* Make sure that bytes from INFO->PRIVATE_DATA->BUFFER (inclusive) -- to ADDR (exclusive) are valid. Returns 1 for success, longjmps -- on error. */ -+ to ADDR (exclusive) are valid. Returns 1 for success, 0 on error. */ - #define FETCH_DATA(info, addr) \ - ((addr) <= ((struct private *) (info->private_data))->max_fetched \ - ? 1 : fetch_data ((info), (addr))) -@@ -136,7 +191,7 @@ - if (status != 0) - { - (*info->memory_error_func) (status, start, info); -- longjmp (priv->bailout, 1); -+ return 0; - } - else - priv->max_fetched = addr; -@@ -161,7 +216,8 @@ - /* Fetch BITS bits from a position in the instruction specified by CODE. - CODE is a "place to put an argument", or 'x' for a destination - that is a general address (mode and register). -- BUFFER contains the instruction. */ -+ BUFFER contains the instruction. -+ Returns -1 on failure. */ - - static int - fetch_arg (unsigned char *buffer, -@@ -216,64 +272,75 @@ - break; - - case 'k': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[3] >> 4); - break; - - case 'C': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = buffer[3]; - break; - - case '1': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - val >>= 12; - break; - - case '2': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - val >>= 6; - break; - - case '3': - case 'j': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - break; - - case '4': -- FETCH_DATA (info, buffer + 5); -+ if (! FETCH_DATA (info, buffer + 5)) -+ return -1; - val = (buffer[4] << 8) + buffer[5]; - val >>= 12; - break; - - case '5': -- FETCH_DATA (info, buffer + 5); -+ if (! FETCH_DATA (info, buffer + 5)) -+ return -1; - val = (buffer[4] << 8) + buffer[5]; - val >>= 6; - break; - - case '6': -- FETCH_DATA (info, buffer + 5); -+ if (! FETCH_DATA (info, buffer + 5)) -+ return -1; - val = (buffer[4] << 8) + buffer[5]; - break; - - case '7': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - val >>= 7; - break; - - case '8': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - val >>= 10; - break; - - case '9': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] << 8) + buffer[3]; - val >>= 5; - break; -@@ -283,7 +350,8 @@ - break; - - case 'E': -- FETCH_DATA (info, buffer + 3); -+ if (! FETCH_DATA (info, buffer + 3)) -+ return -1; - val = (buffer[2] >> 1); - break; - -@@ -450,7 +518,8 @@ - - /* Print an indexed argument. The base register is BASEREG (-1 for pc). - P points to extension word, in buffer. -- ADDR is the nominal core address of that extension word. */ -+ ADDR is the nominal core address of that extension word. -+ Returns NULL upon error. */ - - static unsigned char * - print_indexed (int basereg, -@@ -465,7 +534,7 @@ - char buf[40]; - char vmabuf[50]; - -- word = NEXTWORD (p); -+ NEXTWORD (p, word, NULL); - - /* Generate the text for the index register. - Where this will be output is not yet determined. */ -@@ -503,10 +572,10 @@ - switch ((word >> 4) & 3) - { - case 2: -- base_disp = NEXTWORD (p); -+ NEXTWORD (p, base_disp, NULL); - break; - case 3: -- base_disp = NEXTLONG (p); -+ NEXTLONG (p, base_disp, NULL); - } - if (basereg == -1) - base_disp += addr; -@@ -526,10 +595,10 @@ - switch (word & 3) - { - case 2: -- outer_disp = NEXTWORD (p); -+ NEXTWORD (p, outer_disp, NULL); - break; - case 3: -- outer_disp = NEXTLONG (p); -+ NEXTLONG (p, outer_disp, NULL); - } - - print_base (basereg, base_disp, info); -@@ -547,9 +616,18 @@ - return p; - } - -+#define FETCH_ARG(size, val) \ -+ do \ -+ { \ -+ val = fetch_arg (buffer, place, size, info); \ -+ if (val < 0) \ -+ return -3; \ -+ } \ -+ while (0) -+ - /* Returns number of bytes "eaten" by the operand, or - return -1 if an invalid operand was found, or -2 if -- an opcode tabe error was found. -+ an opcode tabe error was found or -3 to simply abort. - ADDR is the pc for this arg to be relative to. */ - - static int -@@ -575,23 +653,21 @@ - case 'c': /* Cache identifier. */ - { - static char *const cacheFieldName[] = { "nc", "dc", "ic", "bc" }; -- val = fetch_arg (buffer, place, 2, info); -- (*info->fprintf_func) (info->stream, cacheFieldName[val]); -+ FETCH_ARG (2, val); -+ (*info->fprintf_func) (info->stream, cacheFieldName[val]); - break; - } - - case 'a': /* Address register indirect only. Cf. case '+'. */ - { -- (*info->fprintf_func) -- (info->stream, -- "%s@", -- reg_names[fetch_arg (buffer, place, 3, info) + 8]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s@", reg_names[val + 8]); - break; - } - - case '_': /* 32-bit absolute address for move16. */ - { -- uval = NEXTULONG (p); -+ NEXTULONG (p, uval); - (*info->print_address_func) (uval, info); - break; - } -@@ -643,7 +719,7 @@ - /* Fido added these. */ - {"%cac", 0xffe}, {"%mbo", 0xfff}}; - -- val = fetch_arg (buffer, place, 12, info); -+ FETCH_ARG (12, val); - for (regno = sizeof names / sizeof names[0] - 1; regno >= 0; regno--) - if (names[regno].value == val) - { -@@ -656,7 +732,7 @@ - break; - - case 'Q': -- val = fetch_arg (buffer, place, 3, info); -+ FETCH_ARG (3, val); - /* 0 means 8, except for the bkpt instruction... */ - if (val == 0 && d[1] != 's') - val = 8; -@@ -664,7 +740,7 @@ - break; - - case 'x': -- val = fetch_arg (buffer, place, 3, info); -+ FETCH_ARG (3, val); - /* 0 means -1. */ - if (val == 0) - val = -1; -@@ -672,12 +748,12 @@ - break; - - case 'j': -- val = fetch_arg (buffer, place, 3, info); -+ FETCH_ARG (3, val); - (*info->fprintf_func) (info->stream, "#%d", val+1); - break; - - case 'K': -- val = fetch_arg (buffer, place, 9, info); -+ FETCH_ARG (9, val); - (*info->fprintf_func) (info->stream, "#%d", val); - break; - -@@ -685,12 +761,13 @@ - if (place == 'h') - { - static char *const scalefactor_name[] = { "<<", ">>" }; -- val = fetch_arg (buffer, place, 1, info); -+ -+ FETCH_ARG (1, val); - (*info->fprintf_func) (info->stream, scalefactor_name[val]); - } - else - { -- val = fetch_arg (buffer, place, 8, info); -+ FETCH_ARG (8, val); - if (val & 0x80) - val = val - 0x100; - (*info->fprintf_func) (info->stream, "#%d", val); -@@ -698,29 +775,27 @@ - break; - - case 'T': -- val = fetch_arg (buffer, place, 4, info); -+ FETCH_ARG (4, val); - (*info->fprintf_func) (info->stream, "#%d", val); - break; - - case 'D': -- (*info->fprintf_func) (info->stream, "%s", -- reg_names[fetch_arg (buffer, place, 3, info)]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s", reg_names[val]); - break; - - case 'A': -- (*info->fprintf_func) -- (info->stream, "%s", -- reg_names[fetch_arg (buffer, place, 3, info) + 010]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s", reg_names[val + 010]); - break; - - case 'R': -- (*info->fprintf_func) -- (info->stream, "%s", -- reg_names[fetch_arg (buffer, place, 4, info)]); -+ FETCH_ARG (4, val); -+ (*info->fprintf_func) (info->stream, "%s", reg_names[val]); - break; - - case 'r': -- regno = fetch_arg (buffer, place, 4, info); -+ FETCH_ARG (4, regno); - if (regno > 7) - (*info->fprintf_func) (info->stream, "%s@", reg_names[regno]); - else -@@ -728,13 +803,12 @@ - break; - - case 'F': -- (*info->fprintf_func) -- (info->stream, "%%fp%d", -- fetch_arg (buffer, place, 3, info)); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%%fp%d", val); - break; - - case 'O': -- val = fetch_arg (buffer, place, 6, info); -+ FETCH_ARG (6, val); - if (val & 0x20) - (*info->fprintf_func) (info->stream, "%s", reg_names[val & 7]); - else -@@ -742,78 +816,78 @@ - break; - - case '+': -- (*info->fprintf_func) -- (info->stream, "%s@+", -- reg_names[fetch_arg (buffer, place, 3, info) + 8]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s@+", reg_names[val + 8]); - break; - - case '-': -- (*info->fprintf_func) -- (info->stream, "%s@-", -- reg_names[fetch_arg (buffer, place, 3, info) + 8]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s@-", reg_names[val + 8]); - break; - - case 'k': - if (place == 'k') -- (*info->fprintf_func) -- (info->stream, "{%s}", -- reg_names[fetch_arg (buffer, place, 3, info)]); -+ { -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "{%s}", reg_names[val]); -+ } - else if (place == 'C') - { -- val = fetch_arg (buffer, place, 7, info); -+ FETCH_ARG (7, val); - if (val > 63) /* This is a signed constant. */ - val -= 128; - (*info->fprintf_func) (info->stream, "{#%d}", val); - } - else -- return -2; -+ return -1; - break; - - case '#': - case '^': - p1 = buffer + (*d == '#' ? 2 : 4); - if (place == 's') -- val = fetch_arg (buffer, place, 4, info); -+ FETCH_ARG (4, val); - else if (place == 'C') -- val = fetch_arg (buffer, place, 7, info); -+ FETCH_ARG (7, val); - else if (place == '8') -- val = fetch_arg (buffer, place, 3, info); -+ FETCH_ARG (3, val); - else if (place == '3') -- val = fetch_arg (buffer, place, 8, info); -+ FETCH_ARG (8, val); - else if (place == 'b') -- val = NEXTBYTE (p1); -+ NEXTBYTE (p1, val); - else if (place == 'w' || place == 'W') -- val = NEXTWORD (p1); -+ NEXTWORD (p1, val, -3); - else if (place == 'l') -- val = NEXTLONG (p1); -+ NEXTLONG (p1, val, -3); - else - return -2; -+ - (*info->fprintf_func) (info->stream, "#%d", val); - break; - - case 'B': - if (place == 'b') -- disp = NEXTBYTE (p); -+ NEXTBYTE (p, disp); - else if (place == 'B') - disp = COERCE_SIGNED_CHAR (buffer[1]); - else if (place == 'w' || place == 'W') -- disp = NEXTWORD (p); -+ NEXTWORD (p, disp, -3); - else if (place == 'l' || place == 'L' || place == 'C') -- disp = NEXTLONG (p); -+ NEXTLONG (p, disp, -3); - else if (place == 'g') - { -- disp = NEXTBYTE (buffer); -+ NEXTBYTE (buffer, disp); - if (disp == 0) -- disp = NEXTWORD (p); -+ NEXTWORD (p, disp, -3); - else if (disp == -1) -- disp = NEXTLONG (p); -+ NEXTLONG (p, disp, -3); - } - else if (place == 'c') - { - if (buffer[1] & 0x40) /* If bit six is one, long offset. */ -- disp = NEXTLONG (p); -+ NEXTLONG (p, disp, -3); - else -- disp = NEXTWORD (p); -+ NEXTWORD (p, disp, -3); - } - else - return -2; -@@ -822,29 +896,32 @@ - break; - - case 'd': -- val = NEXTWORD (p); -- (*info->fprintf_func) -- (info->stream, "%s@(%d)", -- reg_names[fetch_arg (buffer, place, 3, info) + 8], val); -- break; -+ { -+ int val1; -+ -+ NEXTWORD (p, val, -3); -+ FETCH_ARG (3, val1); -+ (*info->fprintf_func) (info->stream, "%s@(%d)", reg_names[val1 + 8], val); -+ break; -+ } - - case 's': -- (*info->fprintf_func) (info->stream, "%s", -- fpcr_names[fetch_arg (buffer, place, 3, info)]); -+ FETCH_ARG (3, val); -+ (*info->fprintf_func) (info->stream, "%s", fpcr_names[val]); - break; - - case 'e': -- val = fetch_arg(buffer, place, 2, info); -+ FETCH_ARG (2, val); - (*info->fprintf_func) (info->stream, "%%acc%d", val); - break; - - case 'g': -- val = fetch_arg(buffer, place, 1, info); -- (*info->fprintf_func) (info->stream, "%%accext%s", val==0 ? "01" : "23"); -+ FETCH_ARG (1, val); -+ (*info->fprintf_func) (info->stream, "%%accext%s", val == 0 ? "01" : "23"); - break; - - case 'i': -- val = fetch_arg(buffer, place, 2, info); -+ FETCH_ARG (2, val); - if (val == 1) - (*info->fprintf_func) (info->stream, "<<"); - else if (val == 3) -@@ -856,7 +933,8 @@ - case 'I': - /* Get coprocessor ID... */ - val = fetch_arg (buffer, 'd', 3, info); -- -+ if (val < 0) -+ return -3; - if (val != 1) /* Unusual coprocessor ID? */ - (*info->fprintf_func) (info->stream, "(cpid=%d) ", val); - break; -@@ -888,10 +966,16 @@ - if (place == 'd') - { - val = fetch_arg (buffer, 'x', 6, info); -+ if (val < 0) -+ return -3; - val = ((val & 7) << 3) + ((val >> 3) & 7); - } - else -- val = fetch_arg (buffer, 's', 6, info); -+ { -+ val = fetch_arg (buffer, 's', 6, info); -+ if (val < 0) -+ return -3; -+ } - - /* If the is invalid for *d, then reject this match. */ - if (!m68k_valid_ea (*d, val)) -@@ -923,29 +1007,31 @@ - break; - - case 5: -- val = NEXTWORD (p); -+ NEXTWORD (p, val, -3); - (*info->fprintf_func) (info->stream, "%s@(%d)", regname, val); - break; - - case 6: - p = print_indexed (regno, p, addr, info); -+ if (p == NULL) -+ return -3; - break; - - case 7: - switch (val & 7) - { - case 0: -- val = NEXTWORD (p); -+ NEXTWORD (p, val, -3); - (*info->print_address_func) (val, info); - break; - - case 1: -- uval = NEXTULONG (p); -+ NEXTULONG (p, uval); - (*info->print_address_func) (uval, info); - break; - - case 2: -- val = NEXTWORD (p); -+ NEXTWORD (p, val, -3); - (*info->fprintf_func) (info->stream, "%%pc@("); - (*info->print_address_func) (addr + val, info); - (*info->fprintf_func) (info->stream, ")"); -@@ -953,6 +1039,8 @@ - - case 3: - p = print_indexed (-1, p, addr, info); -+ if (p == NULL) -+ return -3; - break; - - case 4: -@@ -960,17 +1048,17 @@ - switch (place) - { - case 'b': -- val = NEXTBYTE (p); -+ NEXTBYTE (p, val); - flt_p = 0; - break; - - case 'w': -- val = NEXTWORD (p); -+ NEXTWORD (p, val, -3); - flt_p = 0; - break; - - case 'l': -- val = NEXTLONG (p); -+ NEXTLONG (p, val, -3); - flt_p = 0; - break; - -@@ -987,7 +1075,7 @@ - break; - - case 'p': -- flval = NEXTPACKED (p); -+ NEXTPACKED (p, flval); - break; - - default: -@@ -1009,7 +1097,7 @@ - mask bit and if set, add a '&' to the arg. */ - if (place == '/') - { -- val = fetch_arg (buffer, place, 1, info); -+ FETCH_ARG (1, val); - if (val) - info->fprintf_func (info->stream, "&"); - } -@@ -1021,7 +1109,7 @@ - { - char doneany; - p1 = buffer + 2; -- val = NEXTWORD (p1); -+ NEXTWORD (p1, val, -3); - /* Move the pointer ahead if this point is farther ahead - than the last. */ - p = p1 > p ? p1 : p; -@@ -1062,7 +1150,8 @@ - { - /* `fmovem' insn. */ - char doneany; -- val = fetch_arg (buffer, place, 8, info); -+ -+ FETCH_ARG (8, val); - if (val == 0) - { - (*info->fprintf_func) (info->stream, "#0"); -@@ -1096,10 +1185,9 @@ - } - else if (place == '8') - { -+ FETCH_ARG (3, val); - /* fmoveml for FP status registers. */ -- (*info->fprintf_func) (info->stream, "%s", -- fpcr_names[fetch_arg (buffer, place, 3, -- info)]); -+ (*info->fprintf_func) (info->stream, "%s", fpcr_names[val]); - } - else - return -2; -@@ -1115,9 +1203,10 @@ - case '2': - case '3': - { -- int val = fetch_arg (buffer, place, 5, info); -+ int val; - char *name = 0; - -+ FETCH_ARG (5, val); - switch (val) - { - case 2: name = "%tt0"; break; -@@ -1152,8 +1241,9 @@ - - case 'f': - { -- int fc = fetch_arg (buffer, place, 5, info); -+ int fc; - -+ FETCH_ARG (5, fc); - if (fc == 1) - (*info->fprintf_func) (info->stream, "%%dfc"); - else if (fc == 0) -@@ -1170,8 +1260,9 @@ - - case 't': - { -- int level = fetch_arg (buffer, place, 3, info); -+ int level; - -+ FETCH_ARG (3, level); - (*info->fprintf_func) (info->stream, "%d", level); - } - break; -@@ -1179,8 +1270,9 @@ - case 'u': - { - short is_upper = 0; -- int reg = fetch_arg (buffer, place, 5, info); -+ int reg; - -+ FETCH_ARG (5, reg); - if (reg & 0x10) - { - is_upper = 1; -@@ -1303,7 +1395,7 @@ - - if (eaten >= 0) - p += eaten; -- else if (eaten == -1) -+ else if (eaten == -1 || eaten == -3) - { - info->fprintf_func = save_printer; - info->print_address_func = save_print_address; -@@ -1318,7 +1410,7 @@ - info->fprintf_func (info->stream, - /* xgettext:c-format */ - _("\n"), -- best->name, best->args); -+ best->name, best->args); - return 2; - } - } -@@ -1439,6 +1531,8 @@ - if (d[0] == 's' && d[1] == '8') - { - val = fetch_arg (buffer, d[1], 3, info); -+ if (val < 0) -+ return 0; - if ((val & (val - 1)) != 0) - break; - } -@@ -1479,13 +1573,7 @@ - - bfd_byte *buffer = priv.the_buffer; - -- /* Save these printing functions in case we need to restore them -- later. */ -- fprintf_ftype save_printer = info->fprintf_func; -- void (* save_print_address) (bfd_vma, struct disassemble_info *) -- = info->print_address_func; -- -- info->private_data = (PTR) &priv; -+ info->private_data = & priv; - /* Tell objdump to use two bytes per chunk - and six bytes per line for displaying raw data. */ - info->bytes_per_chunk = 2; -@@ -1494,49 +1582,23 @@ - priv.max_fetched = priv.the_buffer; - priv.insn_start = memaddr; - -- if (setjmp (priv.bailout) != 0) -- { -- /* longjmp may be called while these printing functions are -- temporarily replaced with dummy functions. Restore them -- before we leave. -- -- Admittedly, this save-and-restore operation is somewhat ugly -- in that we are exposing the fact that match_insn_m68k -- temporarily replaces insn->fprintf_func and -- insn->print_address_func. Perhaps, a real fix is to report a -- FETCH_DATA failure with a return value of some sort, without -- using setjmp/longjmp. A better fix may be to teach the m68k -- disassembler do its job without temporarily replacing -- insn->fprintf_func and insn->print_address_func, but that's a -- task for another day. */ -- info->fprintf_func = save_printer; -- info->print_address_func = save_print_address; -- -- /* Error return. */ -- return -1; -- } -- - arch_mask = bfd_m68k_mach_to_features (info->mach); - if (!arch_mask) - { - /* First try printing an m680x0 instruction. Try printing a Coldfire - one if that fails. */ - val = m68k_scan_mask (memaddr, info, m68k_mask); -- if (val) -- return val; -- -- val = m68k_scan_mask (memaddr, info, mcf_mask); -- if (val) -- return val; -+ if (val == 0) -+ val = m68k_scan_mask (memaddr, info, mcf_mask); - } - else - { - val = m68k_scan_mask (memaddr, info, arch_mask); -- if (val) -- return val; - } - -- /* Handle undefined instructions. */ -- info->fprintf_func (info->stream, "0%o", (buffer[0] << 8) + buffer[1]); -- return 2; -+ if (val == 0) -+ /* Handle undefined instructions. */ -+ info->fprintf_func (info->stream, "0%o", (buffer[0] << 8) + buffer[1]); -+ -+ return val ? val : 2; - } -diff -Naur binutils-2.19.orig/opcodes/ppc-opc.c binutils-2.19/opcodes/ppc-opc.c ---- binutils-2.19.orig/opcodes/ppc-opc.c 2008-08-14 06:56:00.000000000 -0700 -+++ binutils-2.19/opcodes/ppc-opc.c 2008-11-27 02:51:53.000000000 -0800 -@@ -1281,10 +1281,10 @@ - - /* mfsprg can use 260..263 and 272..279. mtsprg only uses spr 272..279 - If not BOOKE or 405, then both use only 272..275. */ -- if (val <= 3 -- || (val < 0x10 && (insn & 0x100) != 0) -- || (val - 0x10 > 3 -- && (dialect & (PPC_OPCODE_BOOKE | PPC_OPCODE_403)) == 0)) -+ if ((val - 0x10 > 3 && (dialect & (PPC_OPCODE_BOOKE | PPC_OPCODE_405)) == 0) -+ || (val - 0x10 > 7 && (insn & 0x100) != 0) -+ || val <= 3 -+ || (val & 8) != 0) - *invalid = 1; - return val & 7; - } diff --git a/packages/toolchain/devel/binutils/binutils-2.19-posix-1.diff b/packages/toolchain/devel/binutils/binutils-2.19-posix-1.diff deleted file mode 100644 index 19892bce7a..0000000000 --- a/packages/toolchain/devel/binutils/binutils-2.19-posix-1.diff +++ /dev/null @@ -1,73 +0,0 @@ -Submitted By: Jim Gifford (patches at jg555 dot com) -Date: 2007-09-01 -Initial Package Version: 2.18 -Origin: http://ttervo.vectorstar.net/nptl/posix-patches/binutils-2.14.90.0.7-posix-head-tail.patch -Upstream Status: Accepted/but Suspended -Description: Makes Posix Compliant - -diff -Naur binutils-2.18.orig/gas/Makefile.am binutils-2.18/gas/Makefile.am ---- binutils-2.18.orig/gas/Makefile.am 2007-08-28 10:19:35.000000000 -0700 -+++ binutils-2.18/gas/Makefile.am 2007-09-01 11:36:26.000000000 -0700 -@@ -791,13 +791,13 @@ - against=stage2 - - # This rule is derived from corresponding code in the Makefile.in for gcc. --# The "tail +16c" is to bypass headers which may include timestamps or -+# The "tail -c +16" is to bypass headers which may include timestamps or - # temporary assembly file names. - comparison: - x=0 ; \ - for file in *.o ; do \ -- tail +16c ./$$file > tmp-foo1; \ -- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ -+ tail -c +16 ./$$file > tmp-foo1; \ -+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \ - if cmp tmp-foo1 tmp-foo2 ; then \ - true ; \ - else \ -diff -Naur binutils-2.18.orig/gas/Makefile.in binutils-2.18/gas/Makefile.in ---- binutils-2.18.orig/gas/Makefile.in 2007-08-28 10:19:35.000000000 -0700 -+++ binutils-2.18/gas/Makefile.in 2007-09-01 11:36:26.000000000 -0700 -@@ -2763,13 +2763,13 @@ - if [ -f stage3/as-new$(EXEEXT) -a ! -f stage3/as$(EXEEXT) ] ; then (cd stage3 ; ln -s as-new as$(EXEEXT)) ; fi - - # This rule is derived from corresponding code in the Makefile.in for gcc. --# The "tail +16c" is to bypass headers which may include timestamps or -+# The "tail -c +16" is to bypass headers which may include timestamps or - # temporary assembly file names. - comparison: - x=0 ; \ - for file in *.o ; do \ -- tail +16c ./$$file > tmp-foo1; \ -- if tail +16c ${against}/$$file > tmp-foo2 2>/dev/null ; then \ -+ tail -c +16 ./$$file > tmp-foo1; \ -+ if tail -c +16 ${against}/$$file > tmp-foo2 2>/dev/null ; then \ - if cmp tmp-foo1 tmp-foo2 ; then \ - true ; \ - else \ -diff -Naur binutils-2.18.orig/ld/testsuite/ld-bootstrap/bootstrap.exp binutils-2.18/ld/testsuite/ld-bootstrap/bootstrap.exp ---- binutils-2.18.orig/ld/testsuite/ld-bootstrap/bootstrap.exp 2007-08-06 13:00:23.000000000 -0700 -+++ binutils-2.18/ld/testsuite/ld-bootstrap/bootstrap.exp 2007-09-01 11:36:26.000000000 -0700 -@@ -152,8 +152,8 @@ - # Although this works, a way to set the date would be better. - # Removing or zeroing the date stamp in the binary produced by - # the linker is not possible as it is required by the target OS. -- exec tail +140 tmpdir/ld2 >tmpdir/ld2tail -- exec tail +140 tmpdir/ld3 >tmpdir/ld3tail -+ exec tail -n +140 tmpdir/ld2 >tmpdir/ld2tail -+ exec tail -n +140 tmpdir/ld3 >tmpdir/ld3tail - catch "exec cmp tmpdir/ld2tail tmpdir/ld3tail" exec_output - exec rm tmpdir/ld2tail tmpdir/ld3tail - } else { -diff -Naur binutils-2.18.orig/src-release binutils-2.18/src-release ---- binutils-2.18.orig/src-release 2007-08-12 12:04:26.000000000 -0700 -+++ binutils-2.18/src-release 2007-09-01 11:36:38.000000000 -0700 -@@ -73,7 +73,7 @@ - elif grep AM_INIT_AUTOMAKE $(TOOL)/configure.in >/dev/null 2>&1; then \ - sed < $(TOOL)/configure.in -n 's/AM_INIT_AUTOMAKE[^,]*, *\([^)]*\))/\1/p'; \ - elif test -f $(TOOL)/version.in; then \ -- head -1 $(TOOL)/version.in; \ -+ head -n 1 $(TOOL)/version.in; \ - elif grep VERSION $(TOOL)/Makefile.in > /dev/null 2>&1; then \ - sed < $(TOOL)/Makefile.in -n 's/^VERSION *= *//p'; \ - else \ diff --git a/packages/toolchain/devel/uClibc/10-uClibc-0.9.30-branch_update-1.diff b/packages/toolchain/devel/uClibc/10-uClibc-0.9.30-branch_update-1.diff deleted file mode 100644 index 54a213b143..0000000000 --- a/packages/toolchain/devel/uClibc/10-uClibc-0.9.30-branch_update-1.diff +++ /dev/null @@ -1,2516 +0,0 @@ -Submitted By: Jim Gifford (jim at cross-lfs dot org) -Date: 01-24-2009 -Initial Package Version: 0.9.30 -Origin: Upstream -Upstream Status: Applied -Description: This is a branch update for uClibc-0.9.30, and should be - rechecked periodically. - -diff -Naur uClibc-0.9.30.orig/extra/locale/gen_wc8bit.c uClibc-0.9.30/extra/locale/gen_wc8bit.c ---- uClibc-0.9.30.orig/extra/locale/gen_wc8bit.c 2008-10-09 05:21:41.000000000 -0700 -+++ uClibc-0.9.30/extra/locale/gen_wc8bit.c 2008-11-25 04:33:55.200309000 -0800 -@@ -219,8 +219,8 @@ - fprintf(out, "\t{ /* %.*s */", n, s0); - } - -- memset(&csd[numsets],sizeof(charset_data),0); -- memset(xi, sizeof(xi), 0); -+ memset(&csd[numsets], 0, sizeof(charset_data)); -+ memset(xi, 0, sizeof(xi)); - { - unsigned long c, wc; - int lines; -diff -Naur uClibc-0.9.30.orig/extra/scripts/conf-header.sh uClibc-0.9.30/extra/scripts/conf-header.sh ---- uClibc-0.9.30.orig/extra/scripts/conf-header.sh 2007-03-16 19:45:59.000000000 -0700 -+++ uClibc-0.9.30/extra/scripts/conf-header.sh 2009-01-21 14:13:07.946159000 -0800 -@@ -8,7 +8,7 @@ - fi - - cat < directly; use instead - #endif - -diff -Naur uClibc-0.9.30.orig/include/math.h uClibc-0.9.30/include/math.h ---- uClibc-0.9.30.orig/include/math.h 2008-10-03 07:24:28.000000000 -0700 -+++ uClibc-0.9.30/include/math.h 2008-12-22 03:55:13.991752000 -0800 -@@ -46,6 +46,10 @@ - /* Get general and ISO C99 specific information. */ - #include - -+#if !(defined _LIBC && (defined NOT_IN_libc && defined IS_IN_libm)) -+# define libm_hidden_proto(name, attrs...) -+#endif -+ - /* The file contains the prototypes for all the - actual math functions. These macros are used for those prototypes, - so we can easily declare each function as both `name' and `__name', -@@ -54,16 +58,30 @@ - #define __MATHCALL(function,suffix, args) \ - __MATHDECL (_Mdouble_,function,suffix, args) - #define __MATHDECL(type, function,suffix, args) \ -- __MATHDECL_1(type, function,suffix, args); \ -- __MATHDECL_1(type, __CONCAT(__,function),suffix, args) -+ __MATHDECL_1(type, function,suffix, args); - #define __MATHCALLX(function,suffix, args, attrib) \ - __MATHDECLX (_Mdouble_,function,suffix, args, attrib) - #define __MATHDECLX(type, function,suffix, args, attrib) \ - __MATHDECL_1(type, function,suffix, args) __attribute__ (attrib); \ -- __MATHDECL_1(type, __CONCAT(__,function),suffix, args) __attribute__ (attrib) -+ __MATHDECLI_MAINVARIANT(function) - #define __MATHDECL_1(type, function,suffix, args) \ - extern type __MATH_PRECNAME(function,suffix) args __THROW -+/* Decls which are also used internally in libm. -+ Only the main variant is used internally, no need to try to avoid relocs -+ for the {l,f} variants. */ -+#define __MATHCALLI(function,suffix, args) \ -+ __MATHDECLI (_Mdouble_,function,suffix, args) -+#define __MATHDECLI(type, function,suffix, args) \ -+ __MATHDECL_1(type, function,suffix, args); \ -+ __MATHDECLI_MAINVARIANT(function) -+/* Private helpers for purely macro impls below. -+ Only make __foo{,f,l} visible but not (the macro-only) foo. */ -+#define __MATHDECL_PRIV(type, function,suffix, args, attrib) \ -+ __MATHDECL_1(type, __CONCAT(__,function),suffix, args) \ -+ __attribute__ (attrib); \ -+ libm_hidden_proto(__MATH_PRECNAME(__##function,suffix)) - -+#define __MATHDECLI_MAINVARIANT libm_hidden_proto - #define _Mdouble_ double - #define __MATH_PRECNAME(name,r) __CONCAT(name,r) - # define _Mdouble_BEGIN_NAMESPACE __BEGIN_NAMESPACE_STD -@@ -72,7 +90,9 @@ - #undef _Mdouble_ - #undef _Mdouble_BEGIN_NAMESPACE - #undef _Mdouble_END_NAMESPACE --#undef __MATH_PRECNAME -+#undef __MATH_PRECNAME -+#undef __MATHDECLI_MAINVARIANT -+#define __MATHDECLI_MAINVARIANT(x) - - #if defined __USE_MISC || defined __USE_ISOC99 - -diff -Naur uClibc-0.9.30.orig/include/sched.h uClibc-0.9.30/include/sched.h ---- uClibc-0.9.30.orig/include/sched.h 2007-02-12 14:52:32.000000000 -0800 -+++ uClibc-0.9.30/include/sched.h 2008-11-15 07:55:31.019090000 -0800 -@@ -63,7 +63,7 @@ - extern int sched_rr_get_interval (__pid_t __pid, struct timespec *__t) __THROW; - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Access macros for `cpu_set'. */ - #define CPU_SETSIZE __CPU_SETSIZE - #define CPU_SET(cpu, cpusetp) __CPU_SET (cpu, cpusetp) -diff -Naur uClibc-0.9.30.orig/include/sys/mman.h uClibc-0.9.30/include/sys/mman.h ---- uClibc-0.9.30.orig/include/sys/mman.h 2008-07-23 04:19:00.000000000 -0700 -+++ uClibc-0.9.30/include/sys/mman.h 2008-11-15 07:55:31.019090000 -0800 -@@ -157,11 +157,13 @@ - extern void *mremap (void *__addr, size_t __old_len, size_t __new_len, - int __flags, ...) __THROW; - -+#ifdef __UCLIBC_LINUX_SPECIFIC__ - /* Remap arbitrary pages of a shared backing store within an existing - VMA. */ - extern int remap_file_pages (void *__start, size_t __size, int __prot, - size_t __pgoff, int __flags) __THROW; - #endif -+#endif - - - /* Open shared memory segment. */ -diff -Naur uClibc-0.9.30.orig/include/sys/sysinfo.h uClibc-0.9.30/include/sys/sysinfo.h ---- uClibc-0.9.30.orig/include/sys/sysinfo.h 2003-10-22 02:15:57.000000000 -0700 -+++ uClibc-0.9.30/include/sys/sysinfo.h 2008-11-15 07:55:31.019090000 -0800 -@@ -48,7 +48,7 @@ - /* Returns information on overall system statistics. */ - extern int sysinfo (struct sysinfo *__info) __THROW; - -- -+#if 0 - /* Return number of configured processors. */ - extern int get_nprocs_conf (void) __THROW; - -@@ -61,6 +61,7 @@ - - /* Return number of available physical pages of memory in the system. */ - extern long int get_avphys_pages (void) __THROW; -+#endif - - __END_DECLS - -diff -Naur uClibc-0.9.30.orig/include/unistd.h uClibc-0.9.30/include/unistd.h ---- uClibc-0.9.30.orig/include/unistd.h 2008-07-07 19:41:21.000000000 -0700 -+++ uClibc-0.9.30/include/unistd.h 2008-11-15 07:55:31.019090000 -0800 -@@ -869,10 +869,12 @@ - __THROW __nonnull ((1)) __wur; - #endif - -+#if defined __UCLIBC_LINUX_SPECIFIC__ - /* Revoke access permissions to all processes currently communicating - with the control terminal, and then send a SIGHUP signal to the process - group of the control terminal. */ - extern int vhangup (void) __THROW; -+#endif - - #if 0 - /* Revoke the access of all descriptors currently open on FILE. */ -diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-elf.c uClibc-0.9.30/ldso/ldso/dl-elf.c ---- uClibc-0.9.30.orig/ldso/ldso/dl-elf.c 2008-09-23 08:07:43.000000000 -0700 -+++ uClibc-0.9.30/ldso/ldso/dl-elf.c 2008-11-18 06:01:35.928405000 -0800 -@@ -928,29 +928,3 @@ - { - __dl_parse_dynamic_info(dpnt, dynamic_info, debug_addr, load_off); - } -- --/* we want this in ldso.so and libdl.a but nowhere else */ --#ifdef __USE_GNU --#if defined IS_IN_rtld || (defined IS_IN_libdl && ! defined SHARED) --extern __typeof(dl_iterate_phdr) __dl_iterate_phdr; --int --__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data) --{ -- struct elf_resolve *l; -- struct dl_phdr_info info; -- int ret = 0; -- -- for (l = _dl_loaded_modules; l != NULL; l = l->next) { -- info.dlpi_addr = l->loadaddr; -- info.dlpi_name = l->libname; -- info.dlpi_phdr = l->ppnt; -- info.dlpi_phnum = l->n_phent; -- ret = callback (&info, sizeof (struct dl_phdr_info), data); -- if (ret) -- break; -- } -- return ret; --} --strong_alias(__dl_iterate_phdr, dl_iterate_phdr) --#endif --#endif -diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-hash.c uClibc-0.9.30/ldso/ldso/dl-hash.c ---- uClibc-0.9.30.orig/ldso/ldso/dl-hash.c 2008-07-23 04:19:00.000000000 -0700 -+++ uClibc-0.9.30/ldso/ldso/dl-hash.c 2008-11-18 06:01:35.928405000 -0800 -@@ -32,14 +32,6 @@ - - - /* Various symbol table handling functions, including symbol lookup */ -- --/* -- * This is the start of the linked list that describes all of the files present -- * in the system with pointers to all of the symbol, string, and hash tables, -- * as well as all of the other good stuff in the binary. -- */ --struct elf_resolve *_dl_loaded_modules = NULL; -- - /* - * This is the list of modules that are loaded when the image is first - * started. As we add more via dlopen, they get added into other -diff -Naur uClibc-0.9.30.orig/ldso/ldso/dl-symbols.c uClibc-0.9.30/ldso/ldso/dl-symbols.c ---- uClibc-0.9.30.orig/ldso/ldso/dl-symbols.c 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/ldso/ldso/dl-symbols.c 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,21 @@ -+/* -+ * This contains all symbols shared between -+ * dynamic linker ld.so and into static libc -+ * -+ * Copyright (c) 2008 STMicroelectronics Ltd -+ * Author: Carmelo Amoroso -+ * -+ * -+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+ * -+ */ -+ -+/* -+ * This is the start of the linked list that describes all of the files present -+ * in the system with pointers to all of the symbol, string, and hash tables, -+ * as well as all of the other good stuff in the binary. -+ */ -+#include -+ -+struct elf_resolve *_dl_loaded_modules = NULL; -+ -diff -Naur uClibc-0.9.30.orig/ldso/ldso/ldso.c uClibc-0.9.30/ldso/ldso/ldso.c ---- uClibc-0.9.30.orig/ldso/ldso/ldso.c 2008-09-30 05:09:55.000000000 -0700 -+++ uClibc-0.9.30/ldso/ldso/ldso.c 2008-11-18 06:01:35.928405000 -0800 -@@ -67,6 +67,7 @@ - unsigned long attribute_hidden _dl_skip_args = 0; - const char *_dl_progname = UCLIBC_LDSO; /* The name of the executable being run */ - #include "dl-startup.c" -+#include "dl-symbols.c" - #include "dl-array.c" - /* Forward function declarations */ - static int _dl_suid_ok(void); -diff -Naur uClibc-0.9.30.orig/libc/inet/getaddrinfo.c uClibc-0.9.30/libc/inet/getaddrinfo.c ---- uClibc-0.9.30.orig/libc/inet/getaddrinfo.c 2008-10-28 09:25:10.000000000 -0700 -+++ uClibc-0.9.30/libc/inet/getaddrinfo.c 2008-12-08 08:29:41.229254000 -0800 -@@ -186,7 +186,7 @@ - return seen; - } - -- for (runp = ifa; runp != NULL; runp = runp->ifa_next) -+ for (runp = ifa; runp != NULL; runp = runp->ifa_next) { - #if defined __UCLIBC_HAS_IPV4__ - if (runp->ifa_addr->sa_family == PF_INET) - seen |= SEEN_IPV4; -@@ -195,7 +195,7 @@ - if (runp->ifa_addr->sa_family == PF_INET6) - seen |= SEEN_IPV6; - #endif /* __UCLIBC_HAS_IPV6__ */ -- -+ } - freeifaddrs(ifa); - } - #else -diff -Naur uClibc-0.9.30.orig/libc/inet/ifaddrs.c uClibc-0.9.30/libc/inet/ifaddrs.c ---- uClibc-0.9.30.orig/libc/inet/ifaddrs.c 2008-10-28 02:55:44.000000000 -0700 -+++ uClibc-0.9.30/libc/inet/ifaddrs.c 2008-11-15 07:55:31.019090000 -0800 -@@ -330,7 +330,7 @@ - that a RTM_NEWADDR index is not known to this map. */ - static int - internal_function --map_newlink (int index, struct ifaddrs_storage *ifas, int *map, int max) -+map_newlink (int idx, struct ifaddrs_storage *ifas, int *map, int max) - { - int i; - -@@ -338,12 +338,12 @@ - { - if (map[i] == -1) - { -- map[i] = index; -+ map[i] = idx; - if (i > 0) - ifas[i - 1].ifa.ifa_next = &ifas[i].ifa; - return i; - } -- else if (map[i] == index) -+ else if (map[i] == idx) - return i; - } - /* This should never be reached. If this will be reached, we have -diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-core.c uClibc-0.9.30/libc/misc/elf/dl-core.c ---- uClibc-0.9.30.orig/libc/misc/elf/dl-core.c 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/elf/dl-core.c 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,20 @@ -+/* -+ * This contains all symbols and functions to support -+ * dynamic linking into static libc. -+ -+ * Copyright (c) 2008 STMicroelectronics Ltd -+ * Author: Carmelo Amoroso -+ * -+ * Based on draft work by Peter S. Mazinger -+ * -+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+ * -+ */ -+ -+#ifdef SHARED -+#error "This file is not suitable for linking into dynamic libc" -+#else -+/* Include ldso symbols and functions used into static libc */ -+#include "../../../ldso/ldso/dl-symbols.c" -+#endif -+ -diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-iterate-phdr.c uClibc-0.9.30/libc/misc/elf/dl-iterate-phdr.c ---- uClibc-0.9.30.orig/libc/misc/elf/dl-iterate-phdr.c 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/elf/dl-iterate-phdr.c 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,76 @@ -+/* Get loaded objects program headers. -+ -+ Based on GNU C library (file: libc/elf/dl-iteratephdr.c) -+ -+ Copyright (C) 2001,2002,2003,2004,2006,2007 Free Software Foundation, Inc. -+ Contributed by Jakub Jelinek , 2001. -+ -+ Copyright (C) 2008 STMicroelectronics Ltd. -+ Author: Carmelo Amoroso -+ -+ Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+*/ -+ -+ -+#include -+#include -+ -+/* we want this in libc but nowhere else */ -+#ifdef __USE_GNU -+ -+extern __typeof(dl_iterate_phdr) __dl_iterate_phdr; -+ -+hidden_proto(__dl_iterate_phdr) -+int -+__dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, size_t size, void *data), void *data) -+{ -+ struct elf_resolve *l; -+ struct dl_phdr_info info; -+ int ret = 0; -+ -+ for (l = _dl_loaded_modules; l != NULL; l = l->next) { -+ info.dlpi_addr = l->loadaddr; -+ info.dlpi_name = l->libname; -+ info.dlpi_phdr = l->ppnt; -+ info.dlpi_phnum = l->n_phent; -+ ret = callback (&info, sizeof (struct dl_phdr_info), data); -+ if (ret) -+ break; -+ } -+ return ret; -+} -+hidden_def (__dl_iterate_phdr) -+ -+# ifdef SHARED -+ -+weak_alias(__dl_iterate_phdr, dl_iterate_phdr) -+ -+# else -+ -+/* dl-support.c defines these and initializes them early on. */ -+extern ElfW(Phdr) *_dl_phdr; -+extern size_t _dl_phnum; -+ -+int -+dl_iterate_phdr (int (*callback) (struct dl_phdr_info *info, -+ size_t size, void *data), void *data) -+{ -+ if (_dl_phnum != 0) -+ { -+ /* This entry describes this statically-linked program itself. */ -+ struct dl_phdr_info info; -+ int ret; -+ info.dlpi_addr = 0; -+ info.dlpi_name = ""; -+ info.dlpi_phdr = _dl_phdr; -+ info.dlpi_phnum = _dl_phnum; -+ ret = (*callback) (&info, sizeof (struct dl_phdr_info), data); -+ if (ret) -+ return ret; -+ } -+ /* Then invoke callback on loaded modules, if any */ -+ return __dl_iterate_phdr (callback, data); -+} -+ -+# endif -+#endif -diff -Naur uClibc-0.9.30.orig/libc/misc/elf/dl-support.c uClibc-0.9.30/libc/misc/elf/dl-support.c ---- uClibc-0.9.30.orig/libc/misc/elf/dl-support.c 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/elf/dl-support.c 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,29 @@ -+/* -+ * Support for dynamic linking code in static libc. -+ * Copyright (C) 1996-2002, 2003, 2004, 2005 Free Software Foundation, Inc. -+ * -+ * Partially based on GNU C Library (file: libc/elf/dl-support.c) -+ * -+ * Copyright (C) 2008 STMicroelectronics Ltd. -+ * Author: Carmelo Amoroso -+ * -+ * Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+ * -+ */ -+ -+#include -+#include -+ -+ElfW(Phdr) *_dl_phdr; -+size_t _dl_phnum; -+ -+void -+internal_function -+_dl_aux_init (ElfW(auxv_t) *av) -+{ -+ /* Get the program headers base address from the aux vect */ -+ _dl_phdr = (ElfW(Phdr) *) av[AT_PHDR].a_un.a_val; -+ -+ /* Get the number of program headers from the aux vect */ -+ _dl_phnum = (size_t) av[AT_PHNUM].a_un.a_val; -+} -diff -Naur uClibc-0.9.30.orig/libc/misc/elf/Makefile uClibc-0.9.30/libc/misc/elf/Makefile ---- uClibc-0.9.30.orig/libc/misc/elf/Makefile 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/elf/Makefile 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,12 @@ -+# Copyright (C) 2008 STMicroelectronics Ltd. -+# Author: Carmelo Amoroso -+ -+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+# -+ -+top_srcdir=../../../ -+top_builddir=../../../ -+all: objs -+include $(top_builddir)Rules.mak -+include Makefile.in -+include $(top_srcdir)Makerules -diff -Naur uClibc-0.9.30.orig/libc/misc/elf/Makefile.in uClibc-0.9.30/libc/misc/elf/Makefile.in ---- uClibc-0.9.30.orig/libc/misc/elf/Makefile.in 1969-12-31 16:00:00.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/elf/Makefile.in 2008-11-18 06:01:35.928405000 -0800 -@@ -0,0 +1,20 @@ -+# Copyright (C) 2008 STMicroelectronics Ltd. -+# Author: Carmelo Amoroso -+ -+# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. -+# -+ -+libc_a_CSRC = dl-support.c dl-core.c dl-iterate-phdr.c -+CFLAGS-dl-iterate-phdr.c=-D_GNU_SOURCE -I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -+CFLAGS-dl-core.c=-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) -I$(top_srcdir)ldso/include -+ -+MISC_ELF_OUT:=$(top_builddir)libc/misc/elf -+MISC_ELF_OBJ:=$(patsubst %.c,$(MISC_ELF_OUT)/%.o,$(libc_a_CSRC)) -+ -+libc-static-y += $(MISC_ELF_OBJ) -+libc-shared-y += $(MISC_ELF_OUT)/dl-iterate-phdr.oS -+ -+objclean-y+= misc_elf_objclean -+ -+misc_elf_objclean: -+ $(RM) $(MISC_ELF_OUT)/*.{o,os,oS} -diff -Naur uClibc-0.9.30.orig/libc/misc/internals/__uClibc_main.c uClibc-0.9.30/libc/misc/internals/__uClibc_main.c ---- uClibc-0.9.30.orig/libc/misc/internals/__uClibc_main.c 2008-06-27 12:12:50.000000000 -0700 -+++ uClibc-0.9.30/libc/misc/internals/__uClibc_main.c 2008-11-18 06:01:35.928405000 -0800 -@@ -72,6 +72,11 @@ - # endif - # endif - -+/* -+ * Needed to initialize _dl_phdr when statically linked -+ */ -+ -+void internal_function _dl_aux_init (ElfW(auxv_t) *av); - #endif /* !SHARED */ - - /* -@@ -114,9 +119,8 @@ - #endif - - /* -- * Declare the __environ global variable and create a strong alias environ. -- * Note: Apparently we must initialize __environ to ensure that the strong -- * environ symbol is also included. -+ * Declare the __environ global variable and create a weak alias environ. -+ * This must be initialized; we cannot have a weak alias into bss. - */ - char **__environ = 0; - weak_alias(__environ, environ) -@@ -310,6 +314,12 @@ - } - aux_dat += 2; - } -+#ifndef SHARED -+ /* Get the program headers (_dl_phdr) from the aux vector -+ It will be used into __libc_setup_tls. */ -+ -+ _dl_aux_init (auxvt); -+#endif - #endif - - /* We need to initialize uClibc. If we are dynamically linked this -diff -Naur uClibc-0.9.30.orig/libc/misc/Makefile.in uClibc-0.9.30/libc/misc/Makefile.in ---- uClibc-0.9.30.orig/libc/misc/Makefile.in 2007-01-10 14:03:34.000000000 -0800 -+++ uClibc-0.9.30/libc/misc/Makefile.in 2008-11-18 06:01:35.928405000 -0800 -@@ -12,6 +12,7 @@ - include $(top_srcdir)libc/misc/ctype/Makefile.in - include $(top_srcdir)libc/misc/dirent/Makefile.in - include $(top_srcdir)libc/misc/error/Makefile.in -+include $(top_srcdir)libc/misc/elf/Makefile.in - include $(top_srcdir)libc/misc/file/Makefile.in - include $(top_srcdir)libc/misc/fnmatch/Makefile.in - include $(top_srcdir)libc/misc/ftw/Makefile.in -diff -Naur uClibc-0.9.30.orig/libc/misc/wchar/wchar.c uClibc-0.9.30/libc/misc/wchar/wchar.c ---- uClibc-0.9.30.orig/libc/misc/wchar/wchar.c 2008-09-29 01:51:31.000000000 -0700 -+++ uClibc-0.9.30/libc/misc/wchar/wchar.c 2008-12-02 09:15:35.191305000 -0800 -@@ -1143,6 +1143,13 @@ - { - int count; - wchar_t wc; -+ size_t i; -+ -+ for (i = 0 ; (i < n) && pwcs[i] ; i++) { -+ if (pwcs[i] != (pwcs[i] & 0x7f)) { -+ return -1; -+ } -+ } - - for (count = 0 ; n && (wc = *pwcs++) ; n--) { - if (wc <= 0xff) { -@@ -1246,7 +1253,7 @@ - "\x08\xec""UCS-4\x00" /* always BE */ - "\x0a\xec""UCS-4BE\x00" - "\x0a\xed""UCS-4LE\x00" -- "\x09\fe4""UTF-32\x00" /* platform endian with BOM */ -+ "\x09\xe4""UTF-32\x00" /* platform endian with BOM */ - "\x0b\xe4""UTF-32BE\x00" - "\x0b\xe5""UTF-32LE\x00" - "\x08\xe2""UCS-2\x00" /* always BE */ -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/alpha/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/alpha/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/alpha/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/alpha/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -159,7 +159,6 @@ - }; - #endif - -- - /* Define some more compatibility macros to be backward compatible with - BSD systems which did not managed to hide these kernel macros. */ - #ifdef __USE_BSD -@@ -181,7 +180,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -204,7 +203,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/arm/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/arm/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/arm/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/arm/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -189,7 +189,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -212,7 +212,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/arm/crt1.S uClibc-0.9.30/libc/sysdeps/linux/arm/crt1.S ---- uClibc-0.9.30.orig/libc/sysdeps/linux/arm/crt1.S 2008-03-26 06:40:36.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/arm/crt1.S 2008-11-25 04:27:50.759727000 -0800 -@@ -238,7 +238,11 @@ - - #ifdef __PIC__ - .L_GOT: -+#ifdef __thumb__ -+ .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+4) -+#else /* __thumb2__ */ - .word _GLOBAL_OFFSET_TABLE_-(.L_GOT_OFF+8) -+#endif - .word _fini(GOT) - .word _init(GOT) - .word main(GOT) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/avr32/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/avr32/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/avr32/bits/fcntl.h 2008-11-03 07:48:07.000000000 -0800 -+++ uClibc-0.9.30/libc/sysdeps/linux/avr32/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -167,8 +167,8 @@ - # define POSIX_FADV_NOREUSE 5 /* Data will be accessed once. */ - #endif - --#ifdef __USE_GNU - -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/bfin/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/bfin/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/bfin/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/bfin/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -185,7 +185,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -208,7 +208,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/common/bits/mathcalls.h uClibc-0.9.30/libc/sysdeps/linux/common/bits/mathcalls.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/common/bits/mathcalls.h 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/common/bits/mathcalls.h 2008-12-22 03:55:13.991752000 -0800 -@@ -52,59 +52,45 @@ - - _Mdouble_BEGIN_NAMESPACE - /* Arc cosine of X. */ --__MATHCALL (acos,, (_Mdouble_ __x)); --libm_hidden_proto(acos) -+__MATHCALLI (acos,, (_Mdouble_ __x)); - /* Arc sine of X. */ --__MATHCALL (asin,, (_Mdouble_ __x)); --libm_hidden_proto(asin) -+__MATHCALLI (asin,, (_Mdouble_ __x)); - /* Arc tangent of X. */ --__MATHCALL (atan,, (_Mdouble_ __x)); --libm_hidden_proto(atan) -+__MATHCALLI (atan,, (_Mdouble_ __x)); - /* Arc tangent of Y/X. */ --__MATHCALL (atan2,, (_Mdouble_ __y, _Mdouble_ __x)); --libm_hidden_proto(atan2) -+__MATHCALLI (atan2,, (_Mdouble_ __y, _Mdouble_ __x)); - - /* Cosine of X. */ --__MATHCALL (cos,, (_Mdouble_ __x)); --libm_hidden_proto(cos) -+__MATHCALLI (cos,, (_Mdouble_ __x)); - /* Sine of X. */ --__MATHCALL (sin,, (_Mdouble_ __x)); --libm_hidden_proto(sin) -+__MATHCALLI (sin,, (_Mdouble_ __x)); - /* Tangent of X. */ --__MATHCALL (tan,, (_Mdouble_ __x)); --libm_hidden_proto(tan) -+__MATHCALLI (tan,, (_Mdouble_ __x)); - - /* Hyperbolic functions. */ - - /* Hyperbolic cosine of X. */ --__MATHCALL (cosh,, (_Mdouble_ __x)); --libm_hidden_proto(cosh) -+__MATHCALLI (cosh,, (_Mdouble_ __x)); - /* Hyperbolic sine of X. */ --__MATHCALL (sinh,, (_Mdouble_ __x)); --libm_hidden_proto(sinh) -+__MATHCALLI (sinh,, (_Mdouble_ __x)); - /* Hyperbolic tangent of X. */ --__MATHCALL (tanh,, (_Mdouble_ __x)); --libm_hidden_proto(tanh) -+__MATHCALLI (tanh,, (_Mdouble_ __x)); - _Mdouble_END_NAMESPACE - - #if 0 /*def __USE_GNU*/ - /* Cosine and sine of X. */ - __MATHDECL (void,sincos,, - (_Mdouble_ __x, _Mdouble_ *__sinx, _Mdouble_ *__cosx)); --libm_hidden_proto(sincos) - #endif - - #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Hyperbolic arc cosine of X. */ --__MATHCALL (acosh,, (_Mdouble_ __x)); --libm_hidden_proto(acosh) -+__MATHCALLI (acosh,, (_Mdouble_ __x)); - /* Hyperbolic arc sine of X. */ --__MATHCALL (asinh,, (_Mdouble_ __x)); --libm_hidden_proto(asinh) -+__MATHCALLI (asinh,, (_Mdouble_ __x)); - /* Hyperbolic arc tangent of X. */ --__MATHCALL (atanh,, (_Mdouble_ __x)); --libm_hidden_proto(atanh) -+__MATHCALLI (atanh,, (_Mdouble_ __x)); - __END_NAMESPACE_C99 - #endif - -@@ -112,64 +98,51 @@ - - _Mdouble_BEGIN_NAMESPACE - /* Exponential function of X. */ --__MATHCALL (exp,, (_Mdouble_ __x)); --libm_hidden_proto(exp) -+__MATHCALLI (exp,, (_Mdouble_ __x)); - - /* Break VALUE into a normalized fraction and an integral power of 2. */ --__MATHCALL (frexp,, (_Mdouble_ __x, int *__exponent)); --libm_hidden_proto(frexp) -+__MATHCALLI (frexp,, (_Mdouble_ __x, int *__exponent)); - - /* X times (two to the EXP power). */ --__MATHCALL (ldexp,, (_Mdouble_ __x, int __exponent)); --libm_hidden_proto(ldexp) -+__MATHCALLI (ldexp,, (_Mdouble_ __x, int __exponent)); - - /* Natural logarithm of X. */ --__MATHCALL (log,, (_Mdouble_ __x)); --libm_hidden_proto(log) -+__MATHCALLI (log,, (_Mdouble_ __x)); - - /* Base-ten logarithm of X. */ --__MATHCALL (log10,, (_Mdouble_ __x)); --libm_hidden_proto(log10) -+__MATHCALLI (log10,, (_Mdouble_ __x)); - - /* Break VALUE into integral and fractional parts. */ --__MATHCALL (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)); --libm_hidden_proto(modf) -+__MATHCALLI (modf,, (_Mdouble_ __x, _Mdouble_ *__iptr)); - _Mdouble_END_NAMESPACE - - #if 0 /*def __USE_GNU*/ - /* A function missing in all standards: compute exponent to base ten. */ - __MATHCALL (exp10,, (_Mdouble_ __x)); --libm_hidden_proto(exp10) - /* Another name occasionally used. */ - __MATHCALL (pow10,, (_Mdouble_ __x)); --libm_hidden_proto(pow10) - #endif - - #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Return exp(X) - 1. */ --__MATHCALL (expm1,, (_Mdouble_ __x)); --libm_hidden_proto(expm1) -+__MATHCALLI (expm1,, (_Mdouble_ __x)); - - /* Return log(1 + X). */ --__MATHCALL (log1p,, (_Mdouble_ __x)); --libm_hidden_proto(log1p) -+__MATHCALLI (log1p,, (_Mdouble_ __x)); - - /* Return the base 2 signed integral exponent of X. */ --__MATHCALL (logb,, (_Mdouble_ __x)); --libm_hidden_proto(logb) -+__MATHCALLI (logb,, (_Mdouble_ __x)); - __END_NAMESPACE_C99 - #endif - - #ifdef __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Compute base-2 exponential of X. */ --__MATHCALL (exp2,, (_Mdouble_ __x)); --libm_hidden_proto(exp2) -+__MATHCALLI (exp2,, (_Mdouble_ __x)); - - /* Compute base-2 logarithm of X. */ - __MATHCALL (log2,, (_Mdouble_ __x)); --libm_hidden_proto(log2) - __END_NAMESPACE_C99 - #endif - -@@ -178,27 +151,23 @@ - - _Mdouble_BEGIN_NAMESPACE - /* Return X to the Y power. */ --__MATHCALL (pow,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(pow) -+__MATHCALLI (pow,, (_Mdouble_ __x, _Mdouble_ __y)); - - /* Return the square root of X. */ --__MATHCALL (sqrt,, (_Mdouble_ __x)); --libm_hidden_proto(sqrt) -+__MATHCALLI (sqrt,, (_Mdouble_ __x)); - _Mdouble_END_NAMESPACE - - #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Return `sqrt(X*X + Y*Y)'. */ --__MATHCALL (hypot,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(hypot) -+__MATHCALLI (hypot,, (_Mdouble_ __x, _Mdouble_ __y)); - __END_NAMESPACE_C99 - #endif - - #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Return the cube root of X. */ --__MATHCALL (cbrt,, (_Mdouble_ __x)); --libm_hidden_proto(cbrt) -+__MATHCALLI (cbrt,, (_Mdouble_ __x)); - __END_NAMESPACE_C99 - #endif - -@@ -208,56 +177,46 @@ - _Mdouble_BEGIN_NAMESPACE - /* Smallest integral value not less than X. */ - __MATHCALLX (ceil,, (_Mdouble_ __x), (__const__)); --libm_hidden_proto(ceil) - - /* Absolute value of X. */ - __MATHCALLX (fabs,, (_Mdouble_ __x), (__const__)); --libm_hidden_proto(fabs) - - /* Largest integer not greater than X. */ - __MATHCALLX (floor,, (_Mdouble_ __x), (__const__)); --libm_hidden_proto(floor) - - /* Floating-point modulo remainder of X/Y. */ --__MATHCALL (fmod,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(fmod) -+__MATHCALLI (fmod,, (_Mdouble_ __x, _Mdouble_ __y)); - - - /* Return 0 if VALUE is finite or NaN, +1 if it - is +Infinity, -1 if it is -Infinity. */ --__MATHDECL_1 (int,__isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(__isinf) -+__MATHDECL_PRIV (int,isinf,, (_Mdouble_ __value), (__const__)); - - /* Return nonzero if VALUE is finite and not NaN. */ --__MATHDECL_1 (int,__finite,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(__finite) -+__MATHDECL_PRIV (int,finite,, (_Mdouble_ __value), (__const__)); - _Mdouble_END_NAMESPACE - - #ifdef __USE_MISC -+#if 0 - /* Return 0 if VALUE is finite or NaN, +1 if it - is +Infinity, -1 if it is -Infinity. */ --__MATHDECL_1 (int,isinf,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(isinf) -+__MATHDECL_PRIV (int,isinf,, (_Mdouble_ __value), (__const__)); - - /* Return nonzero if VALUE is finite and not NaN. */ --__MATHDECL_1 (int,finite,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(finite) -- -+__MATHDECL_PRIV (int,finite,, (_Mdouble_ __value), (__const__)); -+#endif - /* Return the remainder of X/Y. */ - __MATHCALL (drem,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(drem) - - - /* Return the fractional part of X after dividing out `ilogb (X)'. */ - __MATHCALL (significand,, (_Mdouble_ __x)); --libm_hidden_proto(significand) - #endif /* Use misc. */ - - #if defined __USE_MISC || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Return X with its signed changed to Y's. */ - __MATHCALLX (copysign,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); --libm_hidden_proto(copysign) - __END_NAMESPACE_C99 - #endif - -@@ -265,60 +224,46 @@ - __BEGIN_NAMESPACE_C99 - /* Return representation of NaN for double type. */ - __MATHCALLX (nan,, (__const char *__tagb), (__const__)); --libm_hidden_proto(nan) - __END_NAMESPACE_C99 - #endif - - - /* Return nonzero if VALUE is not a number. */ --__MATHDECL_1 (int,__isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(__isnan) -+__MATHDECL_PRIV (int,__isnan,, (_Mdouble_ __value), (__const__)); - - #if defined __USE_MISC || defined __USE_XOPEN - /* Return nonzero if VALUE is not a number. */ --__MATHDECL_1 (int,isnan,, (_Mdouble_ __value)) __attribute__ ((__const__)); --libm_hidden_proto(isnan) -+__MATHDECL_PRIV (int,isnan,, (_Mdouble_ __value), (__const__)); - - /* Bessel functions. */ - __MATHCALL (j0,, (_Mdouble_)); --libm_hidden_proto(j0) - __MATHCALL (j1,, (_Mdouble_)); --libm_hidden_proto(j1) - __MATHCALL (jn,, (int, _Mdouble_)); --libm_hidden_proto(jn) - __MATHCALL (y0,, (_Mdouble_)); --libm_hidden_proto(y0) - __MATHCALL (y1,, (_Mdouble_)); --libm_hidden_proto(y1) - __MATHCALL (yn,, (int, _Mdouble_)); --libm_hidden_proto(yn) - #endif - - - #if defined __USE_MISC || defined __USE_XOPEN || defined __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* Error and gamma functions. */ --__MATHCALL (erf,, (_Mdouble_)); --libm_hidden_proto(erf) --__MATHCALL (erfc,, (_Mdouble_)); --libm_hidden_proto(erfc) --__MATHCALL (lgamma,, (_Mdouble_)); --libm_hidden_proto(lgamma) -+__MATHCALLI (erf,, (_Mdouble_)); -+__MATHCALLI (erfc,, (_Mdouble_)); -+__MATHCALLI (lgamma,, (_Mdouble_)); - __END_NAMESPACE_C99 - #endif - - #ifdef __USE_ISOC99 - __BEGIN_NAMESPACE_C99 - /* True gamma function. */ --__MATHCALL (tgamma,, (_Mdouble_)); --libm_hidden_proto(tgamma) -+__MATHCALLI (tgamma,, (_Mdouble_)); - __END_NAMESPACE_C99 - #endif - - #if defined __USE_MISC || defined __USE_XOPEN - /* Obsolete alias for `lgamma'. */ - __MATHCALL (gamma,, (_Mdouble_)); --libm_hidden_proto(gamma) - #endif - - #ifdef __USE_MISC -@@ -326,7 +271,6 @@ - `signgam'. The reentrant version instead takes a pointer and stores - the value through it. */ - __MATHCALL (lgamma,_r, (_Mdouble_, int *__signgamp)); --libm_hidden_proto(lgamma_r) - #endif - - -@@ -334,103 +278,80 @@ - __BEGIN_NAMESPACE_C99 - /* Return the integer nearest X in the direction of the - prevailing rounding mode. */ --__MATHCALL (rint,, (_Mdouble_ __x)); --libm_hidden_proto(rint) -+__MATHCALLI (rint,, (_Mdouble_ __x)); - - /* Return X + epsilon if X < Y, X - epsilon if X > Y. */ - __MATHCALLX (nextafter,, (_Mdouble_ __x, _Mdouble_ __y), (__const__)); --libm_hidden_proto(nextafter) - # if defined __USE_ISOC99 && !defined __LDBL_COMPAT - __MATHCALLX (nexttoward,, (_Mdouble_ __x, long double __y), (__const__)); --libm_hidden_proto(nexttoward) - # endif - - /* Return the remainder of integer divison X / Y with infinite precision. */ --__MATHCALL (remainder,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(remainder) -+__MATHCALLI (remainder,, (_Mdouble_ __x, _Mdouble_ __y)); - - # if defined __USE_MISC || defined __USE_ISOC99 - /* Return X times (2 to the Nth power). */ --__MATHCALL (scalbn,, (_Mdouble_ __x, int __n)); --libm_hidden_proto(scalbn) -+__MATHCALLI (scalbn,, (_Mdouble_ __x, int __n)); - # endif - - /* Return the binary exponent of X, which must be nonzero. */ --__MATHDECL (int,ilogb,, (_Mdouble_ __x)); --libm_hidden_proto(ilogb) -+__MATHDECLI (int,ilogb,, (_Mdouble_ __x)); - #endif - - #ifdef __USE_ISOC99 - /* Return X times (2 to the Nth power). */ --__MATHCALL (scalbln,, (_Mdouble_ __x, long int __n)); --libm_hidden_proto(scalbln) -+__MATHCALLI (scalbln,, (_Mdouble_ __x, long int __n)); - - /* Round X to integral value in floating-point format using current - rounding direction, but do not raise inexact exception. */ --__MATHCALL (nearbyint,, (_Mdouble_ __x)); --libm_hidden_proto(nearbyint) -+__MATHCALLI (nearbyint,, (_Mdouble_ __x)); - - /* Round X to nearest integral value, rounding halfway cases away from - zero. */ - __MATHCALLX (round,, (_Mdouble_ __x), (__const__)); --libm_hidden_proto(round) - - /* Round X to the integral value in floating-point format nearest but - not larger in magnitude. */ - __MATHCALLX (trunc,, (_Mdouble_ __x), (__const__)); --libm_hidden_proto(trunc) - - /* Compute remainder of X and Y and put in *QUO a value with sign of x/y - and magnitude congruent `mod 2^n' to the magnitude of the integral - quotient x/y, with n >= 3. */ --__MATHCALL (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo)); --libm_hidden_proto(remquo) -+__MATHCALLI (remquo,, (_Mdouble_ __x, _Mdouble_ __y, int *__quo)); - - - /* Conversion functions. */ - - /* Round X to nearest integral value according to current rounding - direction. */ --__MATHDECL (long int,lrint,, (_Mdouble_ __x)); --libm_hidden_proto(lrint) --__MATHDECL (long long int,llrint,, (_Mdouble_ __x)); --libm_hidden_proto(llrint) -+__MATHDECLI (long int,lrint,, (_Mdouble_ __x)); -+__MATHDECLI (long long int,llrint,, (_Mdouble_ __x)); - - /* Round X to nearest integral value, rounding halfway cases away from - zero. */ --__MATHDECL (long int,lround,, (_Mdouble_ __x)); --libm_hidden_proto(lround) --__MATHDECL (long long int,llround,, (_Mdouble_ __x)); --libm_hidden_proto(llround) -+__MATHDECLI (long int,lround,, (_Mdouble_ __x)); -+__MATHDECLI (long long int,llround,, (_Mdouble_ __x)); - - - /* Return positive difference between X and Y. */ --__MATHCALL (fdim,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(fdim) -+__MATHCALLI (fdim,, (_Mdouble_ __x, _Mdouble_ __y)); - - /* Return maximum numeric value from X and Y. */ --__MATHCALL (fmax,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(fmax) -+__MATHCALLI (fmax,, (_Mdouble_ __x, _Mdouble_ __y)); - - /* Return minimum numeric value from X and Y. */ --__MATHCALL (fmin,, (_Mdouble_ __x, _Mdouble_ __y)); --libm_hidden_proto(fmin) -+__MATHCALLI (fmin,, (_Mdouble_ __x, _Mdouble_ __y)); - - - /* Classify given number. */ --__MATHDECL_1 (int, __fpclassify,, (_Mdouble_ __value)) -- __attribute__ ((__const__)); --libm_hidden_proto(__fpclassify) -+__MATHDECL_PRIV (int, fpclassify,, (_Mdouble_ __value), (__const__)); - - /* Test for negative number. */ --__MATHDECL_1 (int, __signbit,, (_Mdouble_ __value)) -- __attribute__ ((__const__)); --libm_hidden_proto(__signbit) -+__MATHDECL_PRIV (int, signbit,, (_Mdouble_ __value), (__const__)); - - - /* Multiply-add function computed as a ternary operation. */ --__MATHCALL (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z)); --libm_hidden_proto(fma) -+__MATHCALLI (fma,, (_Mdouble_ __x, _Mdouble_ __y, _Mdouble_ __z)); - #endif /* Use ISO C99. */ - - #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED || defined __USE_ISOC99 -@@ -440,5 +361,4 @@ - #if defined __USE_MISC || defined __USE_XOPEN_EXTENDED - /* Return X times (2 to the Nth power). */ - __MATHCALL (scalb,, (_Mdouble_ __x, _Mdouble_ __n)); --libm_hidden_proto(scalb) - #endif -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/cris/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/cris/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/cris/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/cris/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -186,7 +186,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -209,7 +209,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/e1/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/e1/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/e1/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/e1/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -182,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -205,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -@@ -231,4 +231,4 @@ - - #endif - __END_DECLS -- -+#endif /* LINUX_SPECIFIC */ -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/frv/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/frv/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/frv/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/frv/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -164,7 +164,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -187,7 +187,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/h8300/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/h8300/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/h8300/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/h8300/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -182,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -205,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/hppa/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/hppa/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/hppa/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/hppa/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -176,7 +176,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -199,7 +199,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/i386/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/i386/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -189,7 +189,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -212,7 +212,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/kernel_types.h uClibc-0.9.30/libc/sysdeps/linux/i386/bits/kernel_types.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/i386/bits/kernel_types.h 2008-07-23 04:23:36.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/i386/bits/kernel_types.h 2009-01-12 07:04:25.958006000 -0800 -@@ -7,9 +7,14 @@ - - /* a hack for compiling a 32 bit user space with 64 bit - * kernel on x86_64 */ --#if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H) -+#if !defined(__ARCH_I386_POSIX_TYPES_H) && \ -+ !defined(_ASM_X86_64_POSIX_TYPES_H) && \ -+ !defined(_ASM_X86_POSIX_TYPES_32_H) && \ -+ !defined(_ASM_X86_POSIX_TYPES_64_H) - #define _ASM_X86_64_POSIX_TYPES_H - #define __ARCH_I386_POSIX_TYPES_H -+#define _ASM_X86_POSIX_TYPES_32_H -+#define _ASM_X86_POSIX_TYPES_64_H - - typedef unsigned short __kernel_dev_t; - typedef unsigned long __kernel_ino_t; -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/i960/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/i960/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/i960/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/i960/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -182,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -205,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/ia64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/ia64/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/ia64/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/ia64/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -161,7 +161,6 @@ - }; - #endif - -- - /* Define some more compatibility macros to be backward compatible with - BSD systems which did not managed to hide these kernel macros. */ - #ifdef __USE_BSD -@@ -183,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -206,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/m68k/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/m68k/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/m68k/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/m68k/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -185,7 +185,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -208,7 +208,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/microblaze/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/microblaze/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/microblaze/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/microblaze/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -182,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -205,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/mips/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/mips/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -209,7 +209,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -232,7 +232,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/socket.h uClibc-0.9.30/libc/sysdeps/linux/mips/bits/socket.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/mips/bits/socket.h 2008-10-06 01:54:40.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/mips/bits/socket.h 2008-12-04 12:06:41.248672000 -0800 -@@ -268,8 +268,8 @@ - + CMSG_ALIGN (sizeof (struct cmsghdr))) - #define CMSG_LEN(len) (CMSG_ALIGN (sizeof (struct cmsghdr)) + (len)) - --extern struct cmsghdr * __NTH (__cmsg_nxthdr (struct msghdr *__mhdr, -- struct cmsghdr *__cmsg)) __THROW; -+extern struct cmsghdr *__cmsg_nxthdr (struct msghdr *__mhdr, -+ struct cmsghdr *__cmsg) __THROW; - #ifdef __USE_EXTERN_INLINES - # ifndef _EXTERN_INLINE - # define _EXTERN_INLINE extern __inline -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/nios/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/nios/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/nios/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/nios/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -185,7 +185,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -208,7 +208,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/nios2/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/nios2/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/nios2/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/nios2/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -185,7 +185,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -208,7 +208,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/powerpc/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/powerpc/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/powerpc/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/powerpc/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -189,7 +189,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -212,7 +212,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sh/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sh/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/sh/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/sh/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -189,7 +189,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -212,7 +212,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sh64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sh64/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/sh64/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/sh64/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -164,7 +164,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -187,7 +187,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/sparc/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/sparc/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/sparc/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/sparc/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -208,7 +208,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -231,7 +231,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/v850/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/v850/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/v850/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/v850/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -182,7 +182,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -205,7 +205,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/vax/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/vax/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/vax/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/vax/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -162,7 +162,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -185,7 +185,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -203,7 +203,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -226,7 +226,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/kernel_types.h uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/kernel_types.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/x86_64/bits/kernel_types.h 2008-07-23 04:23:36.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/x86_64/bits/kernel_types.h 2009-01-12 07:04:25.958006000 -0800 -@@ -4,8 +4,17 @@ - * our private content, and not the kernel header, will win. - * -Erik - */ --#ifndef _ASM_X86_64_POSIX_TYPES_H -+ -+/* a hack for compiling a 32 bit user space with 64 bit -+ * kernel on x86_64 */ -+#if !defined(__ARCH_I386_POSIX_TYPES_H) && \ -+ !defined(_ASM_X86_64_POSIX_TYPES_H) && \ -+ !defined(_ASM_X86_POSIX_TYPES_32_H) && \ -+ !defined(_ASM_X86_POSIX_TYPES_64_H) - #define _ASM_X86_64_POSIX_TYPES_H -+#define __ARCH_I386_POSIX_TYPES_H -+#define _ASM_X86_POSIX_TYPES_32_H -+#define _ASM_X86_POSIX_TYPES_64_H - - typedef unsigned long __kernel_dev_t; - typedef unsigned long __kernel_ino_t; -diff -Naur uClibc-0.9.30.orig/libc/sysdeps/linux/xtensa/bits/fcntl.h uClibc-0.9.30/libc/sysdeps/linux/xtensa/bits/fcntl.h ---- uClibc-0.9.30.orig/libc/sysdeps/linux/xtensa/bits/fcntl.h 2008-09-16 07:02:54.000000000 -0700 -+++ uClibc-0.9.30/libc/sysdeps/linux/xtensa/bits/fcntl.h 2008-11-15 07:55:31.019090000 -0800 -@@ -186,7 +186,7 @@ - #endif - - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - /* Flags for SYNC_FILE_RANGE. */ - # define SYNC_FILE_RANGE_WAIT_BEFORE 1 /* Wait upon writeout of all pages - in the range before performing the -@@ -209,7 +209,7 @@ - - __BEGIN_DECLS - --#ifdef __USE_GNU -+#if defined __USE_GNU && defined __UCLIBC_LINUX_SPECIFIC__ - - /* Provide kernel hint to read ahead. */ - extern ssize_t readahead (int __fd, __off64_t __offset, size_t __count) -diff -Naur uClibc-0.9.30.orig/libm/e_scalb.c uClibc-0.9.30/libm/e_scalb.c ---- uClibc-0.9.30.orig/libm/e_scalb.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/e_scalb.c 2008-12-22 03:55:13.991752000 -0800 -@@ -44,7 +44,7 @@ - return scalbn(x,fn); - #else - if (isnan(x)||isnan(fn)) return x*fn; -- if (!finite(fn)) { -+ if (!isfinite(fn)) { - if(fn>0.0) return x*fn; - else return x/(-fn); - } -diff -Naur uClibc-0.9.30.orig/libm/float_wrappers.c uClibc-0.9.30/libm/float_wrappers.c ---- uClibc-0.9.30.orig/libm/float_wrappers.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/float_wrappers.c 2008-12-22 03:55:13.991752000 -0800 -@@ -36,6 +36,7 @@ - float atan2f(float, float); - float atanf(float); - float atanhf(float); -+float cargf(float complex); - float cbrtf(float); - float ceilf(float); - float copysignf(float, float); -@@ -133,7 +134,7 @@ - #ifdef L_cargf - float cargf (float complex x) - { -- return (float) carg( (double)x ); -+ return (float) carg( (double complex)x ); - } - #endif - -@@ -532,3 +533,10 @@ - return (float) trunc( (double)x ); - } - #endif -+ -+#ifdef L_fmaf -+float fmaf (float x, float y, float z) -+{ -+ return (float) fma( (double)x, (double)y, (double)z ); -+} -+#endif -diff -Naur uClibc-0.9.30.orig/libm/ldouble_wrappers.c uClibc-0.9.30/libm/ldouble_wrappers.c ---- uClibc-0.9.30.orig/libm/ldouble_wrappers.c 2008-10-03 07:24:28.000000000 -0700 -+++ uClibc-0.9.30/libm/ldouble_wrappers.c 2009-01-22 05:37:09.015514000 -0800 -@@ -11,6 +11,8 @@ - */ - - #include "math.h" -+#include -+ - - /* Implement the following, as defined by SuSv3 */ - #if 0 -@@ -21,6 +23,7 @@ - long double atan2l(long double, long double); - long double atanhl(long double); - long double atanl(long double); -+long double cargl(long double complex); - long double cbrtl(long double); - long double ceill(long double); - long double copysignl(long double, long double); -@@ -128,6 +131,14 @@ - #endif - - -+#ifdef L_cargl -+long double cargl (long double complex x) -+{ -+ return (long double) carg( (double complex)x ); -+} -+#endif -+ -+ - #ifdef L_cbrtl - long double cbrtl (long double x) - { -@@ -521,3 +532,43 @@ - return (long double) trunc( (double)x ); - } - #endif -+ -+ -+#ifdef __DO_C99_MATH__ -+ -+#ifdef L_fpclassifyl -+int __fpclassifyl (long double x) -+{ -+ return __fpclassify ( (double) x ); -+} -+#endif -+ -+#ifdef L_finitel -+int __finitel (long double x) -+{ -+ return __finite ( (double)x ); -+} -+#endif -+ -+#ifdef L_signbitl -+int __signbitl (long double x) -+{ -+ return __signbitl ( (double)x ); -+} -+#endif -+ -+#ifdef L_isnanl -+int __isnanl (long double x) -+{ -+ return __isnan ( (double)x ); -+} -+#endif -+ -+#ifdef L_isinfl -+int __isinfl (long double x) -+{ -+ return __isinf ( (double)x ); -+} -+#endif -+ -+#endif -diff -Naur uClibc-0.9.30.orig/libm/Makefile.in uClibc-0.9.30/libm/Makefile.in ---- uClibc-0.9.30.orig/libm/Makefile.in 2008-11-07 13:15:53.000000000 -0800 -+++ uClibc-0.9.30/libm/Makefile.in 2008-12-22 03:55:13.991752000 -0800 -@@ -86,13 +86,13 @@ - scalblnf.o scalbnf.o sinf.o sinhf.o sqrtf.o tanf.o tanhf.o \ - tgammaf.o truncf.o cargf.o llrintf.o - --LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cbrtl.o \ -+LD_MOBJ := acoshl.o acosl.o asinhl.o asinl.o atan2l.o atanhl.o atanl.o cargl.o cbrtl.o \ - ceill.o copysignl.o coshl.o cosl.o erfcl.o erfl.o exp2l.o expl.o \ -- expm1l.o fabsl.o fdiml.o floorl.o fmal.o fmaxl.o fminl.o fmodl.o \ -- frexpl.o gammal.o hypotl.o ilogbl.o ldexpl.o lgammal.o llrintl.o \ -+ expm1l.o fabsl.o finitel.o fdiml.o floorl.o fmal.o fmaxl.o fminl.o fmodl.o fpclassifyl.o \ -+ frexpl.o gammal.o hypotl.o ilogbl.o isinfl.o isnanl.o ldexpl.o lgammal.o llrintl.o \ - llroundl.o log10l.o log1pl.o XXXlog2l.o logbl.o logl.o lrintl.o lroundl.o \ - modfl.o nearbyintl.o nextafterl.o XXXnexttowardl.o powl.o remainderl.o \ -- remquol.o rintl.o roundl.o scalblnl.o scalbnl.o sinhl.o sinl.o sqrtl.o \ -+ remquol.o rintl.o roundl.o scalblnl.o scalbnl.o signbitl.o sinhl.o sinl.o sqrtl.o \ - tanhl.o tanl.o tgammal.o truncl.o - else - # This list of math functions was taken from POSIX/IEEE 1003.1b-1993 -@@ -139,21 +139,21 @@ - libm_OBJ := $(patsubst $(libm_DIR)/%.c,$(libm_OUT)/%.o,$(libm_SRC)) - - ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y) --libm_MSRC2 := $(libm_DIR)/$(LD_MSRC) --libm_MOBJ2 := $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ)) -+libm_MSRC_LD := $(libm_DIR)/$(LD_MSRC) -+libm_MOBJ_LD := $(patsubst %.o,$(libm_OUT)/%.o,$(LD_MOBJ)) - endif --libm_MSRC := $(libm_DIR)/$(FL_MSRC) --libm_MOBJ := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ)) -+libm_MSRC_FL := $(libm_DIR)/$(FL_MSRC) -+libm_MOBJ_FL := $(patsubst %.o,$(libm_OUT)/%.o,$(FL_MOBJ)) - - - ifneq ($(DOMULTI),n) --CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ)))) -+CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_FL)))) - ifeq ($(strip $(UCLIBC_HAS_LONG_DOUBLE_MATH)),y) --CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ2)))) -+CFLAGS-libm += $(patsubst %,-DL_%,$(subst .o,,$(notdir $(libm_MOBJ_LD)))) - endif - endif - --libm_OBJS := $(libm_OBJ) $(libm_MOBJ) $(libm_MOBJ2) -+libm_OBJS := $(libm_OBJ) $(libm_MOBJ_FL) $(libm_MOBJ_LD) - - ifeq ($(DOPIC),y) - libm-a-y += $(libm_OBJS:.o=.os) -@@ -182,7 +182,7 @@ - $(Q)$(RM) $@ - $(do_ar) - --$(libm_OUT)/libm.oS: $(libm_SRC) $(libm_MSRC) $(libm_MSRC2) $(libm_ARCH_SRC) -+$(libm_OUT)/libm.oS: $(libm_SRC) $(libm_MSRC_FL) $(libm_MSRC_LD) $(libm_ARCH_SRC) - $(Q)$(RM) $@ - $(compile-m) - -@@ -191,17 +191,24 @@ - $(Q)$(RM) $@ - $(do_ar) - --$(libm_MOBJ): $(libm_MSRC) -+$(libm_MOBJ_FL): $(libm_MSRC_FL) - $(compile.m) - --$(libm_MOBJ2): $(libm_MSRC2) -+$(libm_MOBJ_LD): $(libm_MSRC_LD) - $(compile.m) - --$(libm_MOBJ:.o=.os): $(libm_MSRC) -+$(libm_MOBJ_FL:.o=.os): $(libm_MSRC_FL) - $(compile.m) - --$(libm_MOBJ2:.o=.os): $(libm_MSRC2) -+$(libm_MOBJ_LD:.o=.os): $(libm_MSRC_LD) - $(compile.m) - -+# spare us from adding a gazillion dummy two-liner files -+$(libm_MOBJ_FL:.o=.i): $(libm_MSRC_FL) -+ $(compile.mi) -+ -+$(libm_MOBJ_LD:.o=.i): $(libm_MSRC_LD) -+ $(compile.mi) -+ - libm_clean: - $(do_rm) $(addprefix $(libm_OUT)/,$(foreach e, o os oS a,$(foreach d, *. */*. */*/*.,$(d)$(e)))) -diff -Naur uClibc-0.9.30.orig/libm/s_finite.c uClibc-0.9.30/libm/s_finite.c ---- uClibc-0.9.30.orig/libm/s_finite.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_finite.c 2008-12-22 03:55:13.991752000 -0800 -@@ -25,5 +25,3 @@ - return (int)((u_int32_t)((hx&0x7fffffff)-0x7ff00000)>>31); - } - libm_hidden_def(__finite) --weak_alias(__finite,finite) --libm_hidden_weak(finite) -diff -Naur uClibc-0.9.30.orig/libm/s_finitef.c uClibc-0.9.30/libm/s_finitef.c ---- uClibc-0.9.30.orig/libm/s_finitef.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_finitef.c 2008-12-22 03:55:13.991752000 -0800 -@@ -21,7 +21,6 @@ - #include "math.h" - #include "math_private.h" - --libm_hidden_proto(__finitef) - int __finitef(float x) - { - int32_t ix; -@@ -29,4 +28,3 @@ - return (int)((u_int32_t)((ix&0x7fffffff)-0x7f800000)>>31); - } - libm_hidden_def(__finitef) --strong_alias(__finitef,finitef) -diff -Naur uClibc-0.9.30.orig/libm/s_fma.c uClibc-0.9.30/libm/s_fma.c ---- uClibc-0.9.30.orig/libm/s_fma.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_fma.c 2008-12-22 03:55:13.991752000 -0800 -@@ -20,11 +20,9 @@ - - #include - --libm_hidden_proto(__fma) - double --__fma (double x, double y, double z) -+fma (double x, double y, double z) - { - return (x * y) + z; - } --libm_hidden_def(__fma) --strong_alias (__fma, fma) -+libm_hidden_def(fma) -diff -Naur uClibc-0.9.30.orig/libm/s_fpclassify.c uClibc-0.9.30/libm/s_fpclassify.c ---- uClibc-0.9.30.orig/libm/s_fpclassify.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_fpclassify.c 2008-12-22 03:55:13.991752000 -0800 -@@ -40,4 +40,4 @@ - - return retval; - } --libm_hidden_def (__fpclassify) -+libm_hidden_def(__fpclassify) -diff -Naur uClibc-0.9.30.orig/libm/s_fpclassifyf.c uClibc-0.9.30/libm/s_fpclassifyf.c ---- uClibc-0.9.30.orig/libm/s_fpclassifyf.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_fpclassifyf.c 2008-12-22 03:55:13.991752000 -0800 -@@ -21,9 +21,7 @@ - #include - #include "math_private.h" - --libm_hidden_proto (__fpclassifyf) --int --__fpclassifyf (float x) -+int __fpclassifyf (float x) - { - u_int32_t wx; - int retval = FP_NORMAL; -@@ -39,4 +37,4 @@ - - return retval; - } --libm_hidden_def (__fpclassifyf) -+libm_hidden_def(__fpclassifyf) -diff -Naur uClibc-0.9.30.orig/libm/s_isinf.c uClibc-0.9.30/libm/s_isinf.c ---- uClibc-0.9.30.orig/libm/s_isinf.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_isinf.c 2008-12-22 03:55:13.991752000 -0800 -@@ -22,5 +22,3 @@ - return ~(lx >> 31) & (hx >> 30); - } - libm_hidden_def(__isinf) --weak_alias (__isinf, isinf) --libm_hidden_weak(isinf) -diff -Naur uClibc-0.9.30.orig/libm/s_isinff.c uClibc-0.9.30/libm/s_isinff.c ---- uClibc-0.9.30.orig/libm/s_isinff.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_isinff.c 2008-12-22 03:55:13.991752000 -0800 -@@ -11,7 +11,6 @@ - #include "math.h" - #include "math_private.h" - --libm_hidden_proto(__isinff) - int - __isinff (float x) - { -@@ -23,4 +22,3 @@ - return ~(t >> 31) & (ix >> 30); - } - libm_hidden_def(__isinff) --strong_alias (__isinff, isinff) -diff -Naur uClibc-0.9.30.orig/libm/s_isnan.c uClibc-0.9.30/libm/s_isnan.c ---- uClibc-0.9.30.orig/libm/s_isnan.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_isnan.c 2008-12-22 03:55:13.991752000 -0800 -@@ -18,12 +18,7 @@ - #include "math.h" - #include "math_private.h" - --#ifdef __STDC__ -- int __isnan(double x) --#else -- int __isnan(x) -- double x; --#endif -+int __isnan(double x) - { - int32_t hx,lx; - EXTRACT_WORDS(hx,lx,x); -@@ -33,5 +28,3 @@ - return (int)(((u_int32_t)hx)>>31); - } - libm_hidden_def(__isnan) --weak_alias(__isnan,isnan) --libm_hidden_weak(isnan) -diff -Naur uClibc-0.9.30.orig/libm/s_isnanf.c uClibc-0.9.30/libm/s_isnanf.c ---- uClibc-0.9.30.orig/libm/s_isnanf.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_isnanf.c 2008-12-22 03:55:13.991752000 -0800 -@@ -21,7 +21,6 @@ - #include "math.h" - #include "math_private.h" - --libm_hidden_proto (__isnanf) - int __isnanf(float x) - { - int32_t ix; -@@ -30,5 +29,4 @@ - ix = 0x7f800000 - ix; - return (int)(((u_int32_t)(ix))>>31); - } --libm_hidden_def (__isnanf) --weak_alias (__isnanf, isnanf) -+libm_hidden_def(__isnanf) -diff -Naur uClibc-0.9.30.orig/libm/s_ldexp.c uClibc-0.9.30/libm/s_ldexp.c ---- uClibc-0.9.30.orig/libm/s_ldexp.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_ldexp.c 2008-12-22 03:55:13.991752000 -0800 -@@ -26,9 +26,9 @@ - double value; int exp; - #endif - { -- if(!finite(value)||value==0.0) return value; -+ if(!isfinite(value)||value==0.0) return value; - value = scalbn(value,exp); -- if(!finite(value)||value==0.0) errno = ERANGE; -+ if(!isfinite(value)||value==0.0) errno = ERANGE; - return value; - } - libm_hidden_def(ldexp) -diff -Naur uClibc-0.9.30.orig/libm/s_signbitf.c uClibc-0.9.30/libm/s_signbitf.c ---- uClibc-0.9.30.orig/libm/s_signbitf.c 2008-09-25 10:43:58.000000000 -0700 -+++ uClibc-0.9.30/libm/s_signbitf.c 2008-12-22 03:55:13.991752000 -0800 -@@ -22,7 +22,6 @@ - - #include "math_private.h" - --libm_hidden_proto(__signbitf) - int - __signbitf (float x) - { -diff -Naur uClibc-0.9.30.orig/libm/s_significand.c uClibc-0.9.30/libm/s_significand.c ---- uClibc-0.9.30.orig/libm/s_significand.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/s_significand.c 2008-12-22 03:55:13.991752000 -0800 -@@ -33,4 +33,3 @@ - { - return __ieee754_scalb(x,(double) -ilogb(x)); - } --libm_hidden_def(significand) -diff -Naur uClibc-0.9.30.orig/libm/w_drem.c uClibc-0.9.30/libm/w_drem.c ---- uClibc-0.9.30.orig/libm/w_drem.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/w_drem.c 2008-12-22 03:55:13.991752000 -0800 -@@ -12,4 +12,3 @@ - { - return remainder(x, y); - } --libm_hidden_def(drem) -diff -Naur uClibc-0.9.30.orig/libm/w_exp.c uClibc-0.9.30/libm/w_exp.c ---- uClibc-0.9.30.orig/libm/w_exp.c 2008-09-26 07:50:16.000000000 -0700 -+++ uClibc-0.9.30/libm/w_exp.c 2008-12-22 03:55:13.991752000 -0800 -@@ -42,7 +42,7 @@ - double z; - z = __ieee754_exp(x); - if(_LIB_VERSION == _IEEE_) return z; -- if(finite(x)) { -+ if(isfinite(x)) { - if(x>o_threshold) - return __kernel_standard(x,x,6); /* exp overflow */ - else if(x -+#include -+#include - - #ifndef PT_EI - # define PT_EI __extern_always_inline - #endif - --/* Copyright (C) 2000, 2002 Free Software Foundation, Inc. -- This file is part of the GNU C Library. -- Contributed by Maciej W. Rozycki , 2000. */ --static __inline__ int --__NTH (_test_and_set (int *p, int v)) --{ -- int r, t; -- -- __asm__ __volatile__ -- ("/* Inline test and set */\n" -- "1:\n\t" -- ".set push\n\t" -- ".set mips2\n\t" -- "ll %0,%3\n\t" -- "move %1,%4\n\t" -- "beq %0,%4,2f\n\t" -- "sc %1,%2\n\t" -- ".set pop\n\t" -- "beqz %1,1b\n" -- "2:\n\t" -- "/* End test and set */" -- : "=&r" (r), "=&r" (t), "=m" (*p) -- : "m" (*p), "r" (v) -- : "memory"); -- -- return r; --} -- -- - /* Spinlock implementation; required. */ - - PT_EI long int -@@ -86,12 +59,22 @@ - ("/* Inline compare & swap */\n" - "1:\n\t" - ".set push\n\t" -+#if _MIPS_SIM == _ABIO32 - ".set mips2\n\t" -+#endif -+#if _MIPS_SIM == _ABI64 -+ "lld %1,%5\n\t" -+#else - "ll %1,%5\n\t" -+#endif - "move %0,$0\n\t" - "bne %1,%3,2f\n\t" - "move %0,%4\n\t" -+#if _MIPS_SIM == _ABI64 -+ "scd %0,%2\n\t" -+#else - "sc %0,%2\n\t" -+#endif - ".set pop\n\t" - "beqz %0,1b\n" - "2:\n\t" -diff -Naur uClibc-0.9.30.orig/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h uClibc-0.9.30/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h ---- uClibc-0.9.30.orig/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h 2007-11-22 08:55:08.000000000 -0800 -+++ uClibc-0.9.30/libpthread/linuxthreads.old/sysdeps/pthread/pthread.h 2009-01-21 15:19:15.303392000 -0800 -@@ -293,7 +293,7 @@ - - #ifdef __USE_GNU - /* Initialize thread attribute *ATTR with attributes corresponding to the -- already running thread TH. It shall be called on unitialized ATTR -+ already running thread TH. It shall be called on uninitialized ATTR - and destroyed with pthread_attr_destroy when no longer needed. */ - extern int pthread_getattr_np (pthread_t __th, pthread_attr_t *__attr) __THROW; - #endif -diff -Naur uClibc-0.9.30.orig/libresolv/Makefile.in uClibc-0.9.30/libresolv/Makefile.in ---- uClibc-0.9.30.orig/libresolv/Makefile.in 2008-11-07 13:15:53.000000000 -0800 -+++ uClibc-0.9.30/libresolv/Makefile.in 2009-01-22 01:50:29.175100000 -0800 -@@ -7,7 +7,7 @@ - - CFLAGS-libresolv := -DNOT_IN_libc -DIS_IN_libresolv $(SSP_ALL_CFLAGS) - --LDFLAGS-libresolv.so := $(LDFLAGS) -+LDFLAGS-libresolv.so := $(LDFLAGS) $(call link.asneeded,-lc) - - LIBS-libresolv.so := $(LIBS) - -diff -Naur uClibc-0.9.30.orig/librt/Makefile.in uClibc-0.9.30/librt/Makefile.in ---- uClibc-0.9.30.orig/librt/Makefile.in 2008-11-07 13:15:53.000000000 -0800 -+++ uClibc-0.9.30/librt/Makefile.in 2009-01-22 01:50:29.175100000 -0800 -@@ -7,7 +7,7 @@ - - CFLAGS-librt := -DNOT_IN_libc -DIS_IN_librt $(SSP_ALL_CFLAGS) - --LDFLAGS-librt.so := $(LDFLAGS) -+LDFLAGS-librt.so := $(LDFLAGS) $(call link.asneeded,-lc) - - LIBS-librt.so := $(LIBS) - -diff -Naur uClibc-0.9.30.orig/Makefile.in uClibc-0.9.30/Makefile.in ---- uClibc-0.9.30.orig/Makefile.in 2008-11-07 13:15:53.000000000 -0800 -+++ uClibc-0.9.30/Makefile.in 2008-11-17 14:38:34.243941000 -0800 -@@ -159,7 +159,7 @@ - @$(disp_gen) - $(Q)set -e; \ - cd $(top_builddir); \ -- tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null`; \ -+ tmp=`mktemp include/bits/sysnum.h.XXXXXX 2>/dev/null || true`; \ - [ -z "$$tmp" ] && tmp='include/bits/sysnum.h.new'; \ - KERNEL_HEADERS="${KERNEL_HEADERS}" top_builddir=. CC="$(CC) $(CPU_CFLAGS)" $(SHELL) extra/scripts/gen_bits_syscall_h.sh > $$tmp; \ - if cmp include/bits/sysnum.h $$tmp >/dev/null 2>&1; then \ -@@ -167,6 +167,15 @@ - else \ - mv -f $$tmp include/bits/sysnum.h; \ - fi -+ @# Ugly linux specific hack.. -+ $(Q)if grep -q __NR_ $@; then true; else \ -+ rm -f $@; \ -+ echo "ERROR: Could not generate syscalls."; \ -+ echo "Make sure that you have proper kernel headers."; \ -+ echo "Your .config in KERNEL_HEADERS=\"\" was set to:"; \ -+ echo "${KERNEL_HEADERS}"; \ -+ exit 1; \ -+ fi - - $(LOCAL_INSTALL_PATH): - $(Q)$(MAKE) PREFIX=$(shell pwd)/ RUNTIME_PREFIX=./ \ -@@ -315,7 +324,13 @@ - $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/inotify.h - $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/perm.h - $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/personality.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/prctl.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/reboot.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sendfile.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/fsuid.h - $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/signalfd.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/swap.h -+ $(RM) $(PREFIX)$(DEVEL_PREFIX)include/sys/sysctl.h - endif - ifneq ($(UCLIBC_SV4_DEPRECATED),y) - # Remove ustat.h since deprecated SV4 support was disabled upon request -diff -Naur uClibc-0.9.30.orig/Makerules uClibc-0.9.30/Makerules ---- uClibc-0.9.30.orig/Makerules 2008-11-07 13:15:53.000000000 -0800 -+++ uClibc-0.9.30/Makerules 2009-01-14 08:03:24.358149000 -0800 -@@ -80,6 +80,7 @@ - pur_disp_compile.u = echo " "CC $(show_objs) - pur_disp_compile.S = echo " "AS $(show_objs) - pur_disp_compile.m = $(pur_disp_compile.c) -+pur_disp_compile.mi= echo " "CPP-m $(show_objs) - pur_disp_compile-m = echo " "CC-m $(show_objs) - pur_disp_hcompile.u= echo " "HOSTCC $(show_objs) - pur_disp_hcompile.o= echo " "HOSTCC-o $(show_objs) -@@ -99,6 +100,7 @@ - sil_disp_compile.u = true - sil_disp_compile.S = true - sil_disp_compile.m = true -+sil_disp_compile.mi= true - sil_disp_compile-m = true - sil_disp_hcompile.u= true - sil_disp_hcompile.o= true -@@ -118,6 +120,7 @@ - ver_disp_compile.u = echo $(cmd_compile.u) - ver_disp_compile.S = echo $(cmd_compile.S) - ver_disp_compile.m = echo $(cmd_compile.m) -+ver_disp_compile.mi= echo $(cmd_compile.mi) - ver_disp_compile-m = echo $(cmd_compile-m) - ver_disp_hcompile.u= echo $(cmd_hcompile.u) - ver_disp_hcompile.o= echo $(cmd_hcompile.o) -@@ -137,6 +140,7 @@ - disp_compile.u = $($(DISP)_disp_compile.u) - disp_compile.S = $($(DISP)_disp_compile.S) - disp_compile.m = $($(DISP)_disp_compile.m) -+disp_compile.mi= $($(DISP)_disp_compile.mi) - disp_compile-m = $($(DISP)_disp_compile-m) - disp_hcompile.u= $($(DISP)_disp_hcompile.u) - disp_hcompile.o= $($(DISP)_disp_hcompile.o) -@@ -189,6 +193,7 @@ - cmd_compile.u = $(CC) $^ $(DEPS-$(notdir $@)) -o $@ $(CFLAGS) $(CFLAGS-$(notdir $(^D))) $(CFLAGS-$(notdir $@)) $(CFLAGS_gen.dep) - cmd_compile.S = $(filter-out -std=gnu99, $(cmd_compile.c)) -D__ASSEMBLER__ $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$(notdir $<)) $(ASFLAGS-$(notdir $@)) - cmd_compile.m = $(cmd_compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@)) -+cmd_compile.mi= $(cmd_compile.m:-c=-E -dD $(EXTRA_CPPFLAGS)) - - cmd_compile-m = $(CC) $^ -c -o $@ $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$(notdir $(@D))) $(CFLAGS-$(notdir $@)) - cmd_strip = $(STRIPTOOL) $(STRIP_FLAGS) $^ -@@ -211,7 +216,8 @@ - compile.s = $(call maybe_exec,compile.s) - compile.S = @$(call maybe_exec,compile.S) - compile.m = @$(call maybe_exec,compile.m) --compile-m = @$(disp_compile-m) ; $(cmd_compile-m) ; $(cmd_t_strip) -+compile.mi= $(call maybe_exec,compile.mi) -+compile-m = @$(disp_compile-m) ; $(cmd_compile-m) && $(cmd_t_strip) - do_strip = @$(disp_strip) ; $(cmd_strip) - do_t_strip= @$(disp_t_strip) ; $(cmd_t_strip) - do_unifdef= @$(disp_unifdef) ; $(cmd_unifdef) -@@ -302,7 +308,7 @@ - $(Q)$(INSTALL) -d $(dir $@) - $(Q)echo "/* Force shared libraries to know about the correct library loader */" > $@ - $(Q)echo "#include " >> $@ -- $(Q)echo "const char __dl_ldso__[] __attribute__ ((section " \ -+ $(Q)echo "const char __dl_ldso__[] attribute_hidden __attribute__ ((weak)) __attribute__ ((section " \ - "(\".interp\"))) =\""$(SHARED_LIB_LOADER_PREFIX)/$(UCLIBC_LDSO)"\";" >> $@ - - $(interp): $(top_builddir)lib/interp.c -diff -Naur uClibc-0.9.30.orig/Rules.mak uClibc-0.9.30/Rules.mak ---- uClibc-0.9.30.orig/Rules.mak 2008-11-12 04:24:16.000000000 -0800 -+++ uClibc-0.9.30/Rules.mak 2009-01-22 01:50:29.175100000 -0800 -@@ -417,22 +417,39 @@ - - # Keep the check_gcc from being needlessly executed - ifndef PIEFLAG --ifneq ($(UCLIBC_BUILD_PIE),y) --export PIEFLAG:= --else - export PIEFLAG:=$(call check_gcc,$(PIEFLAG_NAME),$(PICFLAG)) - endif --endif - # We need to keep track of both the CC PIE flag (above) as - # well as the LD PIE flag (below) because we can't rely on --# gcc passing -pie if we used -fPIE -+# gcc passing -pie if we used -fPIE. We need to directly use -pie -+# instead of -Wl,-pie as gcc picks up the wrong startfile/endfile - ifndef LDPIEFLAG --ifneq ($(UCLIBC_BUILD_PIE),y) --export LDPIEFLAG:= --else --export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-Wl,-pie") -+export LDPIEFLAG:=$(shell $(LD) --help 2>/dev/null | grep -q -- -pie && echo "-pie") -+endif -+ -+# Check for --as-needed support in linker -+ifndef LD_FLAG_ASNEEDED -+_LD_FLAG_ASNEEDED:=$(shell $(LD) --help 2>/dev/null | grep -- --as-needed) -+ifneq ($(_LD_FLAG_ASNEEDED),) -+export LD_FLAG_ASNEEDED:=--as-needed -+endif -+endif -+ifndef LD_FLAG_NO_ASNEEDED -+ifdef LD_FLAG_ASNEEDED -+export LD_FLAG_NO_ASNEEDED:=--no-as-needed -+endif -+endif -+ifndef CC_FLAG_ASNEEDED -+ifdef LD_FLAG_ASNEEDED -+export CC_FLAG_ASNEEDED:=-Wl,$(LD_FLAG_ASNEEDED) -+endif -+endif -+ifndef CC_FLAG_NO_ASNEEDED -+ifdef LD_FLAG_NO_ASNEEDED -+export CC_FLAG_NO_ASNEEDED:=-Wl,$(LD_FLAG_NO_ASNEEDED) - endif - endif -+link.asneeded = $(if $(and $(CC_FLAG_ASNEEDED),$(CC_FLAG_NO_ASNEEDED)),$(CC_FLAG_ASNEEDED) $(1) $(CC_FLAG_NO_ASNEEDED)) - - # Check for AS_NEEDED support in linker script (binutils>=2.16.1 has it) - ifndef ASNEEDED -diff -Naur uClibc-0.9.30.orig/test/locale-mbwc/dat_iswctype.c uClibc-0.9.30/test/locale-mbwc/dat_iswctype.c ---- uClibc-0.9.30.orig/test/locale-mbwc/dat_iswctype.c 2008-07-10 03:30:28.000000000 -0700 -+++ uClibc-0.9.30/test/locale-mbwc/dat_iswctype.c 2008-12-02 09:15:35.191305000 -0800 -@@ -240,7 +240,7 @@ - { { 0x007B, "cntrl" }, { 0,1,0 } }, - { { 0x007E, "cntrl" }, { 0,1,0 } }, - { { 0x007F, "cntrl" }, { 0,0,0 } }, -- { { 0x0080, "cntrl" }, { 0,0,0 } }, -+ { { 0x0080, "cntrl" }, { 0,1,0 } }, - { { 0x0000, "digit" }, { 0,1,0 } }, - { { 0x001F, "digit" }, { 0,1,0 } }, - { { 0x0020, "digit" }, { 0,1,0 } }, -diff -Naur uClibc-0.9.30.orig/utils/Makefile.in uClibc-0.9.30/utils/Makefile.in ---- uClibc-0.9.30.orig/utils/Makefile.in 2008-11-09 05:10:50.000000000 -0800 -+++ uClibc-0.9.30/utils/Makefile.in 2009-01-14 07:54:12.372155000 -0800 -@@ -8,7 +8,10 @@ - CFLAGS-utils := -DNOT_IN_libc $(SSP_ALL_CFLAGS) -B$(top_builddir)lib -Wl,-rpath-link,$(top_builddir)lib - - CFLAGS-utils-common := -I$(top_srcdir)ldso/include -DUCLIBC_RUNTIME_PREFIX=\"$(RUNTIME_PREFIX)\" -DUCLIBC_LDSO=$(UCLIBC_LDSO) -+CFLAGS-utils-shared := -+ifeq ($(UCLIBC_BUILD_PIE),y) - CFLAGS-utils-shared := $(PIEFLAG) $(LDPIEFLAG) -+endif - - CFLAGS-ldconfig := $(CFLAGS-utils-common) - diff --git a/packages/tools/getpir/build b/packages/tools/getpir/build index 9e0c077bbe..766cb4d3aa 100755 --- a/packages/tools/getpir/build +++ b/packages/tools/getpir/build @@ -11,5 +11,5 @@ $MAKE CC=$TARGET_CC getpir $MAKE CC=$TARGET_CC checkpir $STRIP $1 -$STRIPcheckpir +$STRIP checkpir diff --git a/packages/x11-fonts/fontconfig/build b/packages/x11-fonts/fontconfig/build index 4211b405a0..d6243434eb 100755 --- a/packages/x11-fonts/fontconfig/build +++ b/packages/x11-fonts/fontconfig/build @@ -22,6 +22,4 @@ cd $PKG_BUILD --disable-docs $MAKE -$STRIP src/.libs/libfontconfig.so* - $MAKEINSTALL diff --git a/packages/x11-toolkits/gtk+/build b/packages/x11-toolkits/gtk+/build index f5be380f1c..35d0577e4a 100755 --- a/packages/x11-toolkits/gtk+/build +++ b/packages/x11-toolkits/gtk+/build @@ -103,13 +103,4 @@ gt_cv_func_ngettext_libc=no \ make SRC_SUBDIRS="gdk-pixbuf gdk gtk modules perf contrib" -$STRIP contrib/gdk-pixbuf-xlib/.libs/*.so* -$STRIP gdk-pixbuf/.libs/*.so* -$STRIP gdk/.libs/*.so* -$STRIP gtk/.libs/*.so* -$STRIP modules/engines/pixbuf/.libs/*.so -$STRIP modules/input/.libs/*.so -$STRIP modules/printbackends/*/.libs/*.so -$STRIP gdk-pixbuf/.libs/*.so - $MAKEINSTALL SRC_SUBDIRS="gdk-pixbuf gdk gtk modules perf contrib" diff --git a/packages/x11-toolkits/libglade/build b/packages/x11-toolkits/libglade/build index 48bdae15a4..775cf93d64 100755 --- a/packages/x11-toolkits/libglade/build +++ b/packages/x11-toolkits/libglade/build @@ -17,6 +17,4 @@ cd $PKG_BUILD make -$STRIP glade/.libs/*.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11-toolkits/pango/build b/packages/x11-toolkits/pango/build index 73e30a61b0..d950b1552c 100755 --- a/packages/x11-toolkits/pango/build +++ b/packages/x11-toolkits/pango/build @@ -23,7 +23,4 @@ cd $PKG_BUILD make -$STRIP pango/.libs/libpango*.so* -$STRIP modules/*/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/driver/xf86-input-evdev/build b/packages/x11/driver/xf86-input-evdev/build index d877887e01..2d316804fb 100755 --- a/packages/x11/driver/xf86-input-evdev/build +++ b/packages/x11/driver/xf86-input-evdev/build @@ -13,7 +13,4 @@ cd $PKG_BUILD --enable-shared \ --with-xorg-module-dir=$XORG_PATH_MODULES -make - -echo $STRIP src/.libs/evdev_drv.so -$STRIP src/.libs/evdev_drv.so +make \ No newline at end of file diff --git a/packages/x11/driver/xf86-input-synaptics/build b/packages/x11/driver/xf86-input-synaptics/build index 7b887b246d..24c0acbacc 100755 --- a/packages/x11/driver/xf86-input-synaptics/build +++ b/packages/x11/driver/xf86-input-synaptics/build @@ -15,5 +15,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/synaptics_drv.so diff --git a/packages/x11/driver/xf86-video-ati/build b/packages/x11/driver/xf86-video-ati/build index bbcf5eddb8..31b67bb174 100755 --- a/packages/x11/driver/xf86-video-ati/build +++ b/packages/x11/driver/xf86-video-ati/build @@ -16,5 +16,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so diff --git a/packages/x11/driver/xf86-video-intel/build b/packages/x11/driver/xf86-video-intel/build index 440b064a4c..cedded74c3 100755 --- a/packages/x11/driver/xf86-video-intel/build +++ b/packages/x11/driver/xf86-video-intel/build @@ -17,5 +17,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/{,ch7017,ch7xxx,ivch,sil164,tfp410}/.libs/*.so diff --git a/packages/x11/driver/xf86-video-nouveau/build b/packages/x11/driver/xf86-video-nouveau/build index aa198cdfb4..1476f4aa67 100755 --- a/packages/x11/driver/xf86-video-nouveau/build +++ b/packages/x11/driver/xf86-video-nouveau/build @@ -6,7 +6,7 @@ $SCRIPTS/build toolchain $SCRIPTS/build $MESA $SCRIPTS/build $LIBDRM -cd $PKG_BUILD +cd $BUILD/$1* ./configure --host=$TARGET_NAME \ --build=$HOST_NAME \ --prefix=/usr \ @@ -16,5 +16,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so \ No newline at end of file diff --git a/packages/x11/driver/xf86-video-nouveau/install b/packages/x11/driver/xf86-video-nouveau/install index 578527e9f6..ff1f178f9c 100755 --- a/packages/x11/driver/xf86-video-nouveau/install +++ b/packages/x11/driver/xf86-video-nouveau/install @@ -3,4 +3,4 @@ . config/options mkdir -p $INSTALL/$XORG_PATH_MODULES/drivers -cp $PKG_BUILD/src/.libs/*_drv.so $INSTALL/$XORG_PATH_MODULES/drivers +cp $BUILD/$1*/src/.libs/*_drv.so $INSTALL/$XORG_PATH_MODULES/drivers diff --git a/packages/x11/driver/xf86-video-nv/build b/packages/x11/driver/xf86-video-nv/build index e22b353c90..9f0583748b 100755 --- a/packages/x11/driver/xf86-video-nv/build +++ b/packages/x11/driver/xf86-video-nv/build @@ -14,5 +14,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so \ No newline at end of file diff --git a/packages/x11/driver/xf86-video-openchrome-ttm/build b/packages/x11/driver/xf86-video-openchrome-ttm/build index e744b3d2cb..470a3f0af3 100755 --- a/packages/x11/driver/xf86-video-openchrome-ttm/build +++ b/packages/x11/driver/xf86-video-openchrome-ttm/build @@ -15,6 +15,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so -#$STRIP libxvmc/.libs/*.so* diff --git a/packages/x11/driver/xf86-video-openchrome/build b/packages/x11/driver/xf86-video-openchrome/build index 351e1263c9..470a3f0af3 100755 --- a/packages/x11/driver/xf86-video-openchrome/build +++ b/packages/x11/driver/xf86-video-openchrome/build @@ -15,6 +15,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so -$STRIP libxvmc/.libs/*.so* diff --git a/packages/x11/driver/xf86-video-vesa/build b/packages/x11/driver/xf86-video-vesa/build index e22b353c90..9f0583748b 100755 --- a/packages/x11/driver/xf86-video-vesa/build +++ b/packages/x11/driver/xf86-video-vesa/build @@ -14,5 +14,3 @@ cd $PKG_BUILD --with-xorg-module-dir=$XORG_PATH_MODULES make - -$STRIP src/.libs/*.so \ No newline at end of file diff --git a/packages/x11/lib/libICE/build b/packages/x11/lib/libICE/build index 8ee95d516f..ebc50479a5 100755 --- a/packages/x11/lib/libICE/build +++ b/packages/x11/lib/libICE/build @@ -20,6 +20,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libSM/build b/packages/x11/lib/libSM/build index cc7cc12e8f..fe461219b1 100755 --- a/packages/x11/lib/libSM/build +++ b/packages/x11/lib/libSM/build @@ -21,6 +21,4 @@ cd $PKG_BUILD make -#$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libX11/build b/packages/x11/lib/libX11/build index a4c148c5ad..3b7427cb22 100755 --- a/packages/x11/lib/libX11/build +++ b/packages/x11/lib/libX11/build @@ -45,6 +45,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/libX11*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXau/build b/packages/x11/lib/libXau/build index 0a7921e9c1..3454751ab9 100755 --- a/packages/x11/lib/libXau/build +++ b/packages/x11/lib/libXau/build @@ -17,6 +17,4 @@ cd $PKG_BUILD make -$STRIP .libs/libXau.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXcomposite/build b/packages/x11/lib/libXcomposite/build index e83f4fdddf..524084e7c4 100755 --- a/packages/x11/lib/libXcomposite/build +++ b/packages/x11/lib/libXcomposite/build @@ -17,6 +17,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXcomposite.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXdamage/build b/packages/x11/lib/libXdamage/build index e7303142e6..13f4611cf2 100755 --- a/packages/x11/lib/libXdamage/build +++ b/packages/x11/lib/libXdamage/build @@ -20,6 +20,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXdamage.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXext/build b/packages/x11/lib/libXext/build index 8488a8c089..96024c9ef0 100755 --- a/packages/x11/lib/libXext/build +++ b/packages/x11/lib/libXext/build @@ -18,6 +18,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXext.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXfixes/build b/packages/x11/lib/libXfixes/build index df64a85700..7b48b3e5f9 100755 --- a/packages/x11/lib/libXfixes/build +++ b/packages/x11/lib/libXfixes/build @@ -17,6 +17,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXfixes.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXfont/build b/packages/x11/lib/libXfont/build index b254cd4e66..3759d22897 100755 --- a/packages/x11/lib/libXfont/build +++ b/packages/x11/lib/libXfont/build @@ -36,6 +36,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/libXfont.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXft/build b/packages/x11/lib/libXft/build index 48e42f97d4..d8cd3144fd 100755 --- a/packages/x11/lib/libXft/build +++ b/packages/x11/lib/libXft/build @@ -19,8 +19,6 @@ cd $PKG_BUILD make -$STRIP src/.libs/*.so* - $MAKEINSTALL $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" \ diff --git a/packages/x11/lib/libXi/build b/packages/x11/lib/libXi/build index 5575b6a898..c5677628ab 100755 --- a/packages/x11/lib/libXi/build +++ b/packages/x11/lib/libXi/build @@ -18,6 +18,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/libXi.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXmu/build b/packages/x11/lib/libXmu/build index 13f2cb3fbd..a1c27ea6a9 100755 --- a/packages/x11/lib/libXmu/build +++ b/packages/x11/lib/libXmu/build @@ -21,6 +21,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXpm/build b/packages/x11/lib/libXpm/build index 15e6b9eaa2..b1c9b6159b 100755 --- a/packages/x11/lib/libXpm/build +++ b/packages/x11/lib/libXpm/build @@ -21,6 +21,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXrandr/build b/packages/x11/lib/libXrandr/build index d7e2128a50..7953de18c5 100755 --- a/packages/x11/lib/libXrandr/build +++ b/packages/x11/lib/libXrandr/build @@ -19,6 +19,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXrandr.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXrender/build b/packages/x11/lib/libXrender/build index 5803744dc5..ac3d3a7bef 100755 --- a/packages/x11/lib/libXrender/build +++ b/packages/x11/lib/libXrender/build @@ -18,6 +18,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXrender.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11/lib/libXt/build b/packages/x11/lib/libXt/build index 99936a84f4..00fba6f057 100755 --- a/packages/x11/lib/libXt/build +++ b/packages/x11/lib/libXt/build @@ -19,6 +19,4 @@ cd $PKG_BUILD make -C util CC=$HOST_CC CFLAGS=$HOST_CFLAGS makestrs make -$STRIP src/.libs/*.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libXv/build b/packages/x11/lib/libXv/build index 856ba1fc89..2fb40a6535 100755 --- a/packages/x11/lib/libXv/build +++ b/packages/x11/lib/libXv/build @@ -19,6 +19,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXv.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11/lib/libXvMC/build b/packages/x11/lib/libXvMC/build index e236f2fc5e..5a333a9c47 100755 --- a/packages/x11/lib/libXvMC/build +++ b/packages/x11/lib/libXvMC/build @@ -17,6 +17,4 @@ cd $PKG_BUILD $MAKE -#$STRIP src/.libs/libXvMC*.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11/lib/libXxf86vm/build b/packages/x11/lib/libXxf86vm/build index 21361cc4e4..5e8a05323a 100755 --- a/packages/x11/lib/libXxf86vm/build +++ b/packages/x11/lib/libXxf86vm/build @@ -19,6 +19,4 @@ cd $PKG_BUILD $MAKE -$STRIP src/.libs/libXxf86vm.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11/lib/libfontenc/build b/packages/x11/lib/libfontenc/build index 9b2701af58..54d49c65be 100755 --- a/packages/x11/lib/libfontenc/build +++ b/packages/x11/lib/libfontenc/build @@ -16,6 +16,4 @@ cd $PKG_BUILD $MAKE -#$STRIP src/.libs/libfontenc.so* - $MAKEINSTALL \ No newline at end of file diff --git a/packages/x11/lib/libpciaccess/build b/packages/x11/lib/libpciaccess/build index 0f27fcccf5..711ab1a6b0 100755 --- a/packages/x11/lib/libpciaccess/build +++ b/packages/x11/lib/libpciaccess/build @@ -19,6 +19,4 @@ cd $PKG_BUILD make -$STRIP src/.libs/libpciaccess.so* - $MAKEINSTALL diff --git a/packages/x11/lib/libxkbfile/build b/packages/x11/lib/libxkbfile/build index b0c48e0727..af8a75f5a8 100755 --- a/packages/x11/lib/libxkbfile/build +++ b/packages/x11/lib/libxkbfile/build @@ -16,6 +16,4 @@ cd $PKG_BUILD $MAKE -#$STRIP src/.libs/libxkbfile.so* - $MAKEINSTALL diff --git a/packages/x11/lib/pixman/build b/packages/x11/lib/pixman/build index 157a66a0e1..7db09ff6ae 100755 --- a/packages/x11/lib/pixman/build +++ b/packages/x11/lib/pixman/build @@ -21,8 +21,6 @@ echo "" > test/Makefile.am make -$STRIP $1/.libs/*.so* - $MAKEINSTALL cp $SYSROOT_PREFIX/usr/lib/pkgconfig/pixman-1.pc \ diff --git a/packages/x11/other/openbox/build b/packages/x11/other/openbox/build index fbd1917c33..720508a761 100755 --- a/packages/x11/other/openbox/build +++ b/packages/x11/other/openbox/build @@ -26,6 +26,3 @@ cd $PKG_BUILD make $STRIP $1/.libs/$1 - -$STRIP parser/.libs/*.so* -$STRIP render/.libs/*.so* diff --git a/packages/x11/xserver/xorg-server/build b/packages/x11/xserver/xorg-server/build index 2628ea20d1..a0ed2ff111 100755 --- a/packages/x11/xserver/xorg-server/build +++ b/packages/x11/xserver/xorg-server/build @@ -112,18 +112,5 @@ make $STRIP hw/xfree86/Xorg $STRIP hw/xfree86/utils/gtf/gtf -$STRIP hw/xfree86/shadowfb/.libs/libshadowfb.so -$STRIP hw/xfree86/dixmods/.libs/*.so -$STRIP hw/xfree86/vbe/.libs/libvbe.so -$STRIP hw/xfree86/int10/.libs/libint10.so -$STRIP hw/xfree86/exa/.libs/libexa.so -$STRIP hw/xfree86/vgahw/.libs/libvgahw.so -$STRIP hw/xfree86/xaa/.libs/libxaa.so -$STRIP hw/xfree86/xf8_16bpp/.libs/libxf8_16bpp.so -$STRIP hw/xfree86/dixmods/extmod/.libs/libextmod.so -$STRIP hw/xfree86/dri/.libs/libdri.so -$STRIP hw/xfree86/dri2/.libs/libdri2.so -$STRIP hw/xfree86/fbdevhw/.libs/libfbdevhw.so -$STRIP hw/xfree86/i2c/.libs/*_drv.so make DESTDIR=$SYSROOT_PREFIX install diff --git a/scripts/build b/scripts/build index 1781053c11..a2ecfb7a28 100755 --- a/scripts/build +++ b/scripts/build @@ -38,6 +38,12 @@ if [ ! -f $STAMP ]; then if [ -f $PKG_DIR/build ]; then $PKG_DIR/build $@ >&$VERBOSE_OUT + if [ "$DEBUG" = no ]; then + $STRIP `find $BUILD/$1* -name "*.so"` >& /dev/null || \ + echo "no *.so libs found" + $STRIP `find $BUILD/$1* -name "*.so.[0-9]*"` >& /dev/null ||\ + echo "no *.so.[0-9]* libs found" + fi for i in `find $SYSROOT_PREFIX/usr/lib/ -name "*.la"`; do \ $SED "s:\(['= ]\)/usr:\\1$SYSROOT_PREFIX/usr:g" $i; \ done