X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=binutils%2Fpatches%2Fbinutils-2.23.51.0.2-pt-pax-flags-20120807.patch;fp=binutils%2Fpatches%2Fbinutils-2.22.52.0.2-pt-pax-flags-20120425.patch;h=15530168437e85d232dbdae3640179f05442deb2;hb=e5e215318b7c988161f42fb7a190ffb019738420;hp=00494cb520075236fb6088edbafc0fbf6505633d;hpb=17ffa184c61edf437f1940d62ada9f64b2df9181;p=people%2Fms%2Fipfire-3.x.git diff --git a/binutils/patches/binutils-2.22.52.0.2-pt-pax-flags-20120425.patch b/binutils/patches/binutils-2.23.51.0.2-pt-pax-flags-20120807.patch similarity index 84% rename from binutils/patches/binutils-2.22.52.0.2-pt-pax-flags-20120425.patch rename to binutils/patches/binutils-2.23.51.0.2-pt-pax-flags-20120807.patch index 00494cb52..155301684 100644 --- a/binutils/patches/binutils-2.22.52.0.2-pt-pax-flags-20120425.patch +++ b/binutils/patches/binutils-2.23.51.0.2-pt-pax-flags-20120807.patch @@ -1,5 +1,5 @@ ---- binutils-2.22/bfd/elf-bfd.h -+++ binutils-2.22/bfd/elf-bfd.h +--- binutils-2.23.51.0.2/bfd/elf-bfd.h ++++ binutils-2.23.51.0.2/bfd/elf-bfd.h @@ -1577,6 +1577,9 @@ struct elf_obj_tdata /* Segment flags for the PT_GNU_STACK segment. */ unsigned int stack_flags; @@ -10,8 +10,8 @@ /* Symbol version definitions in external objects. */ Elf_Internal_Verdef *verdef; ---- binutils-2.22/bfd/elf.c -+++ binutils-2.22/bfd/elf.c +--- binutils-2.23.51.0.2/bfd/elf.c ++++ binutils-2.23.51.0.2/bfd/elf.c @@ -1158,6 +1158,7 @@ get_segment_type (unsigned int p_type) case PT_GNU_EH_FRAME: pt = "EH_FRAME"; break; case PT_GNU_STACK: pt = "STACK"; break; @@ -81,8 +81,8 @@ && (segment->p_type != PT_TLS \ || (section->flags & SEC_THREAD_LOCAL)) \ && (segment->p_type == PT_LOAD \ ---- binutils-2.22/bfd/elflink.c -+++ binutils-2.22/bfd/elflink.c +--- binutils-2.23.51.0.2/bfd/elflink.c ++++ binutils-2.23.51.0.2/bfd/elflink.c @@ -5545,16 +5545,30 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, return TRUE; @@ -129,8 +129,8 @@ notesec = s; } else if (bed->default_execstack) ---- binutils-2.22/binutils/readelf.c -+++ binutils-2.22/binutils/readelf.c +--- binutils-2.23.51.0.2/binutils/readelf.c ++++ binutils-2.23.51.0.2/binutils/readelf.c @@ -2740,6 +2740,7 @@ get_segment_type (unsigned long p_type) return "GNU_EH_FRAME"; case PT_GNU_STACK: return "GNU_STACK"; @@ -139,8 +139,8 @@ default: if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC)) ---- binutils-2.22/include/bfdlink.h -+++ binutils-2.22/include/bfdlink.h +--- binutils-2.23.51.0.2/include/bfdlink.h ++++ binutils-2.23.51.0.2/include/bfdlink.h @@ -322,6 +322,14 @@ struct bfd_link_info /* TRUE if PT_GNU_RELRO segment should be created. */ unsigned int relro: 1; @@ -156,8 +156,8 @@ /* TRUE if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment should be created. */ unsigned int eh_frame_hdr: 1; ---- binutils-2.22/include/elf/common.h -+++ binutils-2.22/include/elf/common.h +--- binutils-2.23.51.0.2/include/elf/common.h ++++ binutils-2.23.51.0.2/include/elf/common.h @@ -429,6 +429,7 @@ #define PT_SUNW_EH_FRAME PT_GNU_EH_FRAME /* Solaris uses the same value */ #define PT_GNU_STACK (PT_LOOS + 0x474e551) /* Stack flags */ @@ -188,8 +188,8 @@ /* Values for section header, sh_type field. */ #define SHT_NULL 0 /* Section header table entry unused */ ---- binutils-2.22/ld/emultempl/elf32.em -+++ binutils-2.22/ld/emultempl/elf32.em +--- binutils-2.23.51.0.2/ld/emultempl/elf32.em ++++ binutils-2.23.51.0.2/ld/emultempl/elf32.em @@ -2285,6 +2285,16 @@ fragment <]*> 3c1c0043 lui gp,0x43 00408d64 <[^>]*> 279c2c98 addiu gp,gp,11416 ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd @@ -1,7 +1,7 @@ Elf file type is DYN \(Shared object file\) @@ -567,8 +567,8 @@ *0*3 * \.dynamic * *0*4 * + *0*5 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -591,8 +591,8 @@ *0*6 *\.dynamic * *0*7 * + *0*8 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -615,8 +615,8 @@ *0*6 * \.dynamic * *0*7 * + *0*8 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -639,8 +639,8 @@ *0*6 * \.dynamic * *0*7 * + *0*8 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -663,8 +663,8 @@ *0*6 * \.dynamic * *0*7 * + *0*8 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -687,8 +687,8 @@ *0*5 * \.dynamic * *0*6 * + *0*7 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd -+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd @@ -1,7 +1,7 @@ Elf file type is EXEC \(Executable file\) @@ -711,42 +711,8 @@ *0*6 * \.dynamic * *0*7 * + *0*8 * ---- binutils-2.22/ld/testsuite/ld-mips-elf/rel32-n32.d -+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel32-n32.d -@@ -10,6 +10,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: - [0-9a-f ]+R_MIPS_REL32 - - Hex dump of section '.text': -- 0x000002e0 00000000 00000000 00000000 00000000 ................ -- 0x000002f0 000002f0 00000000 00000000 00000000 ................ - 0x00000300 00000000 00000000 00000000 00000000 ................ -+ 0x00000310 00000310 00000000 00000000 00000000 ................ -+ 0x00000320 00000000 00000000 00000000 00000000 ................ ---- binutils-2.22/ld/testsuite/ld-mips-elf/rel32-o32.d -+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel32-o32.d -@@ -10,6 +10,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: - [0-9a-f ]+R_MIPS_REL32 - - Hex dump of section '.text': -- 0x000002e0 00000000 00000000 00000000 00000000 ................ -- 0x000002f0 000002f0 00000000 00000000 00000000 ................ - 0x00000300 00000000 00000000 00000000 00000000 ................ -+ 0x00000310 00000310 00000000 00000000 00000000 ................ -+ 0x00000320 00000000 00000000 00000000 00000000 ................ ---- binutils-2.22/ld/testsuite/ld-mips-elf/rel64.d -+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel64.d -@@ -14,6 +14,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: - +Type3: R_MIPS_NONE - - Hex dump of section '.text': -- 0x00000450 00000000 00000000 00000000 00000000 ................ -- 0x00000460 00000000 00000460 00000000 00000000 ................ -- 0x00000470 00000000 00000000 00000000 00000000 ................ -+ 0x00000490 00000000 00000000 00000000 00000000 ................ -+ 0x000004a0 00000000 000004a0 00000000 00000000 ................ -+ 0x000004b0 00000000 00000000 00000000 00000000 ................ ---- binutils-2.22/ld/testsuite/ld-mips-elf/tlsbin-o32.d -+++ binutils-2.22/ld/testsuite/ld-mips-elf/tlsbin-o32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/tlsbin-o32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-mips-elf/tlsbin-o32.d @@ -2,42 +2,42 @@ Disassembly of section .text: @@ -828,8 +794,8 @@ +00400[0-9a-f]{3} <__tls_get_addr>: + 400[0-9a-f]{3}: 03e00008 jr ra + 400[0-9a-f]{3}: 00000000 nop ---- binutils-2.22/ld/testsuite/ld-powerpc/tls.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tls.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls.d @@ -9,45 +9,45 @@ Disassembly of section \.text: @@ -917,8 +883,8 @@ - 10000180: 4e 80 00 20 blr +0+10000[0-9a-f]{3} <\.__tls_get_addr>: + 10000[0-9a-f]{3}: 4e 80 00 20 blr ---- binutils-2.22/ld/testsuite/ld-powerpc/tls.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tls.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls.g @@ -8,5 +8,5 @@ .*: +file format elf64-powerpc @@ -927,8 +893,8 @@ - 100101f0 ffffffff ffff8058 .* + 10010([0-9a-f]{3}) 00000000 10018\1 ffffffff ffff8018 .* + 10010[0-9a-f]{3} ffffffff ffff8058 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tls32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.d @@ -9,42 +9,42 @@ Disassembly of section \.text: @@ -1006,16 +972,16 @@ -0+181012c <_GLOBAL_OFFSET_TABLE_>: +0+1810[0-9a-f]{3} <_GLOBAL_OFFSET_TABLE_>: \.\.\. ---- binutils-2.22/ld/testsuite/ld-powerpc/tls32.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.g @@ -8,4 +8,4 @@ .*: +file format elf32-powerpc Contents of section \.got: - 1810128 4e800021 00000000 00000000 00000000 .* + 18101[0-9a-f]{2} 4e800021 00000000 00000000 00000000 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tls32.t -+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.t +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.t ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tls32.t @@ -8,5 +8,5 @@ .*: +file format elf32-powerpc @@ -1024,24 +990,24 @@ - 1810118 56789abc 6789abcd 789abcde 00c0ffee .* + 18101[0-9a-f]{2} 12345678 23456789 3456789a 456789ab .* + 18101[0-9a-f]{2} 56789abc 6789abcd 789abcde 00c0ffee .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.d @@ -44,4 +44,4 @@ Disassembly of section \.got: .*: 4e 80 00 21 blrl .* <_GLOBAL_OFFSET_TABLE_>: -.*: 01 81 02 b8 00 00 00 00 00 00 00 00 .* +.*: 01 81 02 [bd]8 00 00 00 00 00 00 00 00 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.g @@ -8,4 +8,4 @@ Contents of section \.got: .* 00000000 00000000 00000000 4e800021 .* -.* 018102b8 00000000 00000000 .* +.* 018102[bd]8 00000000 00000000 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.r -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.r +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.r ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsexe32.r @@ -33,13 +33,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ Program Headers: @@ -1067,8 +1033,8 @@ Relocation section '\.rela\.dyn' at offset .* contains 2 entries: Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsmark.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsmark.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsmark.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsmark.d @@ -9,29 +9,29 @@ Disassembly of section \.text: @@ -1124,8 +1090,8 @@ - 10000140: 4e 80 00 20 blr +0+10000[0-9a-f]{3} <\.__tls_get_addr>: + 10000[0-9a-f]{3}: 4e 80 00 20 blr ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsmark32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsmark32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsmark32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsmark32.d @@ -9,17 +9,17 @@ Disassembly of section \.text: @@ -1158,8 +1124,8 @@ +0+18000[0-9a-f]{2} <__tls_get_addr>: + 18000[0-9a-f]{2}: 4e 80 00 20 blr +#pass ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt1.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt1.d @@ -9,17 +9,17 @@ Disassembly of section \.text: @@ -1189,8 +1155,8 @@ + 10000[0-9a-f]{3}: 48 00 00 0c b .* + 10000[0-9a-f]{3}: 4b ff ff e5 bl 10000[0-9a-f]{3} <\.__tls_get_addr> + 10000[0-9a-f]{3}: 60 00 00 00 nop ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1_32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1_32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt1_32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt1_32.d @@ -9,16 +9,16 @@ Disassembly of section \.text: @@ -1217,8 +1183,8 @@ + 18000[0-9a-f]{2}: 48 00 00 08 b .* + 18000[0-9a-f]{2}: 4b ff ff e9 bl 18000[0-9a-f]{2} <__tls_get_addr> #pass ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt2.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt2.d @@ -9,15 +9,15 @@ Disassembly of section \.text: @@ -1244,8 +1210,8 @@ + 10000[0-9a-f]{3}: 38 62 80 08 addi r3,r2,-32760 + 10000[0-9a-f]{3}: 4b ff ff ed bl 10000[0-9a-f]{3} <\.__tls_get_addr> + 10000[0-9a-f]{3}: 60 00 00 00 nop ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2_32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2_32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt2_32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt2_32.d @@ -9,15 +9,15 @@ Disassembly of section \.text: @@ -1270,8 +1236,8 @@ + 18000[0-9a-f]{2}: 38 6d ff f4 addi r3,r13,-12 + 18000[0-9a-f]{2}: 4b ff ff ed bl 18000[0-9a-f]{2} <__tls_get_addr> #pass ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt3.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt3.d @@ -9,18 +9,18 @@ Disassembly of section \.text: @@ -1303,8 +1269,8 @@ + 10000[0-9a-f]{3}: 48 00 00 0c b .* + 10000[0-9a-f]{3}: 4b ff ff e1 bl 10000[0-9a-f]{3} <\.__tls_get_addr> + 10000[0-9a-f]{3}: 60 00 00 00 nop ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3_32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3_32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt3_32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt3_32.d @@ -9,17 +9,17 @@ Disassembly of section \.text: @@ -1333,8 +1299,8 @@ + 18000[0-9a-f]{2}: 48 00 00 08 b .* + 18000[0-9a-f]{2}: 4b ff ff e5 bl 18000[0-9a-f]{2} <__tls_get_addr> #pass ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt4.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt4.d @@ -9,40 +9,40 @@ Disassembly of section \.text: @@ -1404,8 +1370,8 @@ + 10000[0-9a-f]{3}: 48 00 00 0c b .* + 10000[0-9a-f]{3}: 60 00 00 00 nop + 10000[0-9a-f]{3}: 38 63 90 08 addi r3,r3,-28664 ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4_32.d -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4_32.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt4_32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsopt4_32.d @@ -9,36 +9,36 @@ Disassembly of section \.text: @@ -1466,8 +1432,17 @@ + 18000[0-9a-f]{2}: 48 00 00 08 b .* + 18000[0-9a-f]{2}: 38 63 90 08 addi r3,r3,-28664 #pass ---- binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.d +@@ -42,5 +42,5 @@ Disassembly of section \.got: + #... + .*: 4e 80 00 21 blrl + .* <_GLOBAL_OFFSET_TABLE_>: +-.*: 00 01 03 ec .* ++.*: 00 01 [0-9a-f]{2} [0-9a-f]{2} .* + #pass +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.g @@ -9,5 +9,5 @@ Contents of section \.got: .* 00000000 00000000 00000000 00000000 .* @@ -1475,8 +1450,39 @@ -.* 00000000 4e800021 000103ec 00000000 .* +.* 00000000 4e800021 00010[0-9a-f]{3} 00000000 .* .* 00000000 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.r ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlsso32.r +@@ -35,6 +35,7 @@ Program Headers: + +LOAD .* RWE 0x10000 + +DYNAMIC .* RW +0x4 + +TLS .* 0x0+1c 0x0+38 R +0x4 ++ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] + + Section to Segment mapping: + +Segment Sections\.\.\. +@@ -42,6 +43,7 @@ Program Headers: + +01 +\.tdata \.dynamic \.got \.plt + +02 +\.dynamic + +03 +\.tdata \.tbss ++ +04 + + + Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 18 entries: + Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend +@@ -52,9 +54,9 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 18 entries: + [0-9a-f ]+R_PPC_TPREL16 +0+30 +le0 \+ 0 + [0-9a-f ]+R_PPC_TPREL16_HA +0+34 +le1 \+ 0 + [0-9a-f ]+R_PPC_TPREL16_LO +0+34 +le1 \+ 0 +-[0-9a-f ]+R_PPC_TPREL16 +0+103d0 +\.tdata \+ 103e4 +-[0-9a-f ]+R_PPC_TPREL16_HA +0+103d0 +\.tdata \+ 103e8 +-[0-9a-f ]+R_PPC_TPREL16_LO +0+103d0 +\.tdata \+ 103e8 ++[0-9a-f ]+R_PPC_TPREL16 +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} ++[0-9a-f ]+R_PPC_TPREL16_HA +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} ++[0-9a-f ]+R_PPC_TPREL16_LO +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} + [0-9a-f ]+R_PPC_DTPMOD32 +0 + [0-9a-f ]+R_PPC_DTPREL32 +0 + [0-9a-f ]+R_PPC_DTPMOD32 +0 +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstoc.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstoc.g @@ -8,8 +8,8 @@ .*: +file format elf64-powerpc @@ -1491,8 +1497,8 @@ + 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* + 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* + 10010[0-9a-f]{3} ffffffff ffff8060 00000000 00000000 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.t -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.t +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstoc.t ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstoc.t @@ -8,7 +8,7 @@ .*: +file format elf64-powerpc @@ -1505,8 +1511,8 @@ + 10010190 23456789 abcdef01 3456789a bcdef012 .* + 100101a0 456789ab cdef0123 56789abc def01234 .* + 100101b0 6789abcd ef012345 789abcde f0123456 .* ---- binutils-2.22/ld/testsuite/ld-powerpc/tlstocso.g -+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstocso.g +--- binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstocso.g ++++ binutils-2.23.51.0.2/ld/testsuite/ld-powerpc/tlstocso.g @@ -7,7 +7,7 @@ .*: +file format elf64-powerpc @@ -1516,18 +1522,9 @@ .* 00000000 00000000 00000000 00000000 .* .* 00000000 00000000 00000000 00000000 .* .* 00000000 00000000 00000000 00000000 .* ---- binutils-2.22/ld/testsuite/ld-s390/tlsbin.rd -+++ binutils-2.22/ld/testsuite/ld-s390/tlsbin.rd -@@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ - - Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align -- +PHDR +0x0+34 0x0+400034 0x0+400034 0x0+c0 0x0+c0 R E 0x4 -- +INTERP +0x0+f4 0x0+4000f4 0x0+4000f4 0x0+11 0x0+11 R +0x1 -+ +PHDR +0x0+34 0x0+400034 0x0+400034 0x0+e0 0x0+e0 R E 0x4 -+ +INTERP +0x0+114 0x0+400114 0x0+400114 0x0+11 0x0+11 R +0x1 - .*Requesting program interpreter.* - +LOAD .* R E 0x1000 +--- binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlsbin.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlsbin.rd +@@ -36,6 +36,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+ +LOAD .* RW +0x1000 +DYNAMIC .* RW +0x4 +TLS .* 0x0+60 0x0+a0 R +0x20 @@ -1543,18 +1540,9 @@ Relocation section '.rela.dyn' at offset .* contains 4 entries: Offset +Info +Type +Sym.Value +Sym. Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-s390/tlsbin_64.rd -+++ binutils-2.22/ld/testsuite/ld-s390/tlsbin_64.rd -@@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ - - Program Headers: - +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align -- +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+150 0x0+150 R E 0x8 -- +INTERP +0x0+190 0x0+80000190 0x0+80000190 0x0+11 0x0+11 R +0x1 -+ +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+188 0x0+188 R E 0x8 -+ +INTERP +0x0+1c8 0x0+800001c8 0x0+800001c8 0x0+11 0x0+11 R +0x1 - .*Requesting program interpreter.* - +LOAD .* R E 0x1000 +--- binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlsbin_64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlsbin_64.rd +@@ -36,6 +36,7 @@ There are [0-9]+ program headers, starting at offset [0-9]+ +LOAD .* RW +0x1000 +DYNAMIC .* RW +0x8 +TLS .* 0x0+60 0x0+a0 R +0x20 @@ -1570,8 +1558,8 @@ Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-s390/tlspic.rd -+++ binutils-2.22/ld/testsuite/ld-s390/tlspic.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlspic.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlspic.rd @@ -39,6 +39,7 @@ Program Headers: +LOAD .* RW +0x1000 +DYNAMIC .* RW +0x4 @@ -1588,8 +1576,8 @@ Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: Offset +Info +Type +Sym.Value +Sym. Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-s390/tlspic_64.rd -+++ binutils-2.22/ld/testsuite/ld-s390/tlspic_64.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlspic_64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-s390/tlspic_64.rd @@ -39,6 +39,7 @@ Program Headers: +LOAD .* RW +0x1000 +DYNAMIC .* RW +0x8 @@ -1606,8 +1594,8 @@ Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-scripts/empty-aligned.d -+++ binutils-2.22/ld/testsuite/ld-scripts/empty-aligned.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-scripts/empty-aligned.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-scripts/empty-aligned.d @@ -8,7 +8,9 @@ Program Headers: +Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg +Align @@ -1618,8 +1606,8 @@ +Segment Sections\.\.\. +00 +.text + +01 + ---- binutils-2.22/ld/testsuite/ld-sh/tlsbin-2.d -+++ binutils-2.22/ld/testsuite/ld-sh/tlsbin-2.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-sh/tlsbin-2.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sh/tlsbin-2.d @@ -44,6 +44,7 @@ Program Headers: +LOAD.* +DYNAMIC.* @@ -1636,8 +1624,8 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 4 entries: Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-sh/tlspic-2.d -+++ binutils-2.22/ld/testsuite/ld-sh/tlspic-2.d +--- binutils-2.23.51.0.2/ld/testsuite/ld-sh/tlspic-2.d ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sh/tlspic-2.d @@ -32,7 +32,7 @@ Key to Flags: Elf file type is DYN \(Shared object file\) @@ -1663,8 +1651,8 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 10 entries: Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-sparc/gotop32.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/gotop32.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/gotop32.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/gotop32.rd @@ -31,6 +31,7 @@ Program Headers: +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000 +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+2000 0x0+2000 RW +0x10000 @@ -1673,8 +1661,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/gotop64.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/gotop64.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/gotop64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/gotop64.rd @@ -31,6 +31,7 @@ Program Headers: +LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x100000 +LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+2000 0x0+2000 RW +0x100000 @@ -1683,8 +1671,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunbin32.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunbin32.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunbin32.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunbin32.rd @@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ Program Headers: @@ -1702,8 +1690,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunbin64.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunbin64.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunbin64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunbin64.rd @@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ Program Headers: @@ -1721,8 +1709,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic32.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic32.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunnopic32.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunnopic32.rd @@ -32,6 +32,7 @@ Program Headers: +LOAD .* RW +0x10000 +DYNAMIC .* RW +0x4 @@ -1731,8 +1719,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 12 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic64.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic64.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunnopic64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunnopic64.rd @@ -32,6 +32,7 @@ Program Headers: +LOAD .* RW +0x100000 +DYNAMIC .* RW +0x8 @@ -1741,8 +1729,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunpic32.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunpic32.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunpic32.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunpic32.rd @@ -36,6 +36,7 @@ Program Headers: +LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+184 0x0+184 RWE 0x10000 +DYNAMIC +0x0+2060 0x0+12060 0x0+12060 0x0+98 0x0+98 RW +0x4 @@ -1751,8 +1739,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: ---- binutils-2.22/ld/testsuite/ld-sparc/tlssunpic64.rd -+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunpic64.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunpic64.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-sparc/tlssunpic64.rd @@ -36,6 +36,7 @@ Program Headers: +LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+3a0 0x0+3a0 RWE 0x100000 +DYNAMIC +0x0+2060 0x0+102060 0x0+102060 0x0+130 0x0+130 RW +0x8 @@ -1761,8 +1749,8 @@ #... Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: ---- binutils-2.22/ld/testsuite/ld-x86-64/tlsgdesc.rd -+++ binutils-2.22/ld/testsuite/ld-x86-64/tlsgdesc.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-x86-64/tlsgdesc.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-x86-64/tlsgdesc.rd @@ -36,12 +36,14 @@ Program Headers: +LOAD.* +LOAD.* @@ -1778,8 +1766,8 @@ Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries: +Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend ---- binutils-2.22/ld/testsuite/ld-x86-64/tlspic.rd -+++ binutils-2.22/ld/testsuite/ld-x86-64/tlspic.rd +--- binutils-2.23.51.0.2/ld/testsuite/ld-x86-64/tlspic.rd ++++ binutils-2.23.51.0.2/ld/testsuite/ld-x86-64/tlspic.rd @@ -40,6 +40,7 @@ Program Headers: +LOAD +0x0+11ac 0x0+2011ac 0x0+2011ac 0x0+244 0x0+244 RW +0x200000 +DYNAMIC +0x0+1210 0x0+201210 0x0+201210 0x0+130 0x0+130 RW +0x8