[PATCH] D14567: [ELF2] - dont merge .data.rel.ro/.data.rel.ro.local into .data section.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 12 23:59:03 PST 2015
- Previous message: [PATCH] D14567: [ELF2] - dont merge .data.rel.ro/.data.rel.ro.local into .data section.
- Next message: [PATCH] D14217: [x86] translating "fp" (floating point) instructions from {fadd, fdiv, fmul, fsub, fsubr, fdivr} to {faddp, fdivp, fmulp, fsubp, fsubrp, fdivrp}
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
This revision was automatically updated to reflect the committed changes.
Closed by commit rL253018: [ELF2] - dont merge .data.rel.ro/.data.rel.ro.local into .data section. (authored by grimar).
Changed prior to commit:
http://reviews.llvm.org/D14567?vs=40072&id=40113#toc
Repository:
rL LLVM
http://reviews.llvm.org/D14567
Files:
lld/trunk/ELF/Writer.cpp
lld/trunk/test/elf2/section-name.s
Index: lld/trunk/test/elf2/section-name.s
===================================================================
--- lld/trunk/test/elf2/section-name.s
+++ lld/trunk/test/elf2/section-name.s
@@ -17,6 +17,10 @@
.section .bss,"", at nobits
.section .foo.a,"aw"
.section .foo,"aw"
+.section .data.rel.ro,"aw",%progbits
+.section .data.rel.ro.a,"aw",%progbits
+.section .data.rel.ro.local,"aw",%progbits
+.section .data.rel.ro.local.a,"aw",%progbits
// CHECK-NOT: Name: .rodata.a
// CHECK: Name: .rodata
@@ -26,5 +30,8 @@
// CHECK: Name: .data
// CHECK: Name: .foo.a
// CHECK: Name: .foo
+// CHECK-NOT: Name: .data.rel.ro.a
+// CHECK-NOT: Name: .data.rel.ro.local.a
+// CHECK: Name: .data.rel.ro
// CHECK-NOT: Name: .bss.a
// CHECK: Name: .bss
Index: lld/trunk/ELF/Writer.cpp
===================================================================
--- lld/trunk/ELF/Writer.cpp
+++ lld/trunk/ELF/Writer.cpp
@@ -491,6 +491,8 @@
return ".text";
if (S.startswith(".rodata."))
return ".rodata";
+ if (S.startswith(".data.rel.ro"))
+ return ".data.rel.ro";
if (S.startswith(".data."))
return ".data";
if (S.startswith(".bss."))
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14567.40113.patch
Type: text/x-patch
Size: 1172 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151113/d1f71c4c/attachment.bin>
- Previous message: [PATCH] D14567: [ELF2] - dont merge .data.rel.ro/.data.rel.ro.local into .data section.
- Next message: [PATCH] D14217: [x86] translating "fp" (floating point) instructions from {fadd, fdiv, fmul, fsub, fsubr, fdivr} to {faddp, fdivp, fmulp, fsubp, fsubrp, fdivrp}
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the llvm-commits
mailing list