This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Regarding aligned
- From: ramesh muthu <rameshandram at yahoo dot com>
- To: gcc-help at gcc dot gnu dot org
- Date: Wed, 9 Dec 2009 06:39:07 -0800 (PST)
- Subject: Regarding aligned
Hello all,
I am compiling Linux kernel 2.4.17 with gcc version 2.95.3 . and
i have declared static variable in kernel(.bss section).
it size is 8kb (long uldata[2048].
Before aligned (unsigned long uldata[2048])
c0242880 A __bss_start
c0242880 b no_idt
c0242888 b reboot_mode
c02428a0 b uldata
c02448a0 b root_irq_dir
After Aligned :unsigned long uldata[2048] __attibute( aligned(8192)))
=================================================================
c02427c0 D tcp_hashinfo
c0242880 A __bss_start
c0244000 b no_idt
c0244008 b reboot_mode
c0246000 b uldata
Could you please tell me why no_idt symbol address(c0242880) is changed after alinged uldata ???
Thanks for help .
Regards
Ramesh