]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
merge r9157:
authorJulian Seward <jseward@acm.org>
Wed, 18 Feb 2009 09:26:04 +0000 (09:26 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 18 Feb 2009 09:26:04 +0000 (09:26 +0000)
   Update the sed expressions that handle the output of ld --verbose

git-svn-id: svn://svn.valgrind.org/valgrind/branches/VALGRIND_3_4_BRANCH@9200

Makefile.am

index 14b728e07ec3aad6de403aca7fa199fe64e4140b..7192cba07269e1808fff1f0db9d8287630899b19 100644 (file)
@@ -209,26 +209,26 @@ valt_load_address_x86_linux.lds: Makefile
        $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | sed \
                -e '1,/^=====\+$$/d' \
                -e '/^=====\+$$/,/.\*/d' \
-               -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
+               -e '/\. = \(0x[0-9A-Fa-f]\+\|SEGMENT_START("[^"]\+", 0x[0-9A-Fa-f]\+)\) + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
        || rm -f $@
 
 valt_load_address_amd64_linux.lds: Makefile
        $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | sed \
                -e '1,/^=====\+$$/d' \
                -e '/^=====\+$$/,/.\*/d' \
-               -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
+               -e '/\. = \(0x[0-9A-Fa-f]\+\|SEGMENT_START("[^"]\+", 0x[0-9A-Fa-f]\+)\) + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
        || rm -f $@
 
 valt_load_address_ppc32_linux.lds: Makefile
        $(CC) @FLAG_M32@ -Wl,--verbose -nostdlib 2>&1 | sed \
                -e '1,/^=====\+$$/d' \
                -e '/^=====\+$$/,/.\*/d' \
-               -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
+               -e '/\. = \(0x[0-9A-Fa-f]\+\|SEGMENT_START("[^"]\+", 0x[0-9A-Fa-f]\+)\) + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
        || rm -f $@
 
 valt_load_address_ppc64_linux.lds: Makefile
        $(CC) -m64 -Wl,--verbose -nostdlib 2>&1 | sed \
                -e '1,/^=====\+$$/d' \
                -e '/^=====\+$$/,/.\*/d' \
-               -e '/\. = 0x[0-9A-Fa-f]\+ + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
+               -e '/\. = \(0x[0-9A-Fa-f]\+\|SEGMENT_START("[^"]\+", 0x[0-9A-Fa-f]\+)\) + SIZEOF_HEADERS/s/0x[0-9A-Fa-f]\+/valt_load_address/g' > $@ \
        || rm -f $@