bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/5006] Alignment padding for bss overwrites random file locations


From: vda dot linux at googlemail dot com
Subject: [Bug ld/5006] Alignment padding for bss overwrites random file locations
Date: 8 Sep 2007 14:36:31 -0000

------- Additional Comments From vda dot linux at googlemail dot com  
2007-09-08 14:36 -------
Thanks for incredibly fast analysis and bugfix!

I looked into how .bss_page_aligned got progbits in first place.
GCC seems to infer nobits v. progbits based on *section name*! Oh crap...

char boot_cpu_stack[IRQSTACKSIZE] __attribute__((section(".bss.page_aligned")));
gets nobits,

char boot_cpu_stack[IRQSTACKSIZE] __attribute__((section(".bss_page_aligned")));
gets progbits.

Somehow it doesn't feel like the Right Thing to do.
Jakub Jelinek <jakub at redhat dot com> already was pointing this out here
http://gcc.gnu.org/ml/gcc-patches/2006-08/msg00258.html

Anyway, I will be able to make it work now.

Thanks again!

-- 


http://sourceware.org/bugzilla/show_bug.cgi?id=5006

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]