Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2191)

Unified Diff: binutils-2.20/ld/scripttempl/naclelf.sc

Issue 8243015: Fix linker script alignment of TLS sections (Closed)
Patch Set: Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: binutils-2.20/ld/scripttempl/naclelf.sc
===================================================================
--- a/binutils-2.20/ld/scripttempl/naclelf.sc
+++ b/binutils-2.20/ld/scripttempl/naclelf.sc
@@ -458,13 +458,13 @@
/* The total size of the TLS template area must be a multiple of 0x20,
* but it's size calculation is hardcoded in bfd_elf_final_link function
* so the only thing we can do is align segments here properly */
- .tdata : ${RELOCATING+ALIGN(0x20)} {
+ .tdata ${RELOCATING+ALIGN(0x20)}${RELOCATING-0} : ALIGN(0x10) {
krasin 2011/10/12 19:56:07 The line itself looks fine (modulo my linker scrip
${RELOCATING+PROVIDE (__tls_template_start = .);}
*(.tdata${RELOCATING+ .tdata.* .gnu.linkonce.td.*})
${RELOCATING+. = ALIGN(0x20);}
${RELOCATING+PROVIDE (__tls_template_tdata_end = .);}
}
- .tbss : ${RELOCATING+ALIGN(0x20)} {
+ .tbss ${RELOCATING+ALIGN(0x20)}${RELOCATING-0} : ALIGN(0x10) {
krasin 2011/10/12 19:56:07 I'm not sure, if this line is required. bss is put
*(.tbss${RELOCATING+ .tbss.* .gnu.linkonce.tb.*})${RELOCATING+ *(.tcommon)}
${RELOCATING+. = ALIGN(0x20);}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698