Re: section attribute producing invalid sized sections

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

 



> You can alter the default alignment if you want, e.g.
...
> But that's probably not a great idea because the default alignment 
> requirement is there to allow the use of sse2 vector instructions that 
> require aligned operands.

Thanks for the hints at seeing the assembly that helps and quick reply. The
alignment error
was what I expected, but still expected correct behavior in C when iterating
over the section.

That is, 

struct dummy *start = __start_section_test[];
struct dummy *stop = __stop_section_test[]
struct dummy *iter = start;

I should be able to use iter++ to access the next element in the section. Am
I doing such operation correctly, or assuming a different behavior that only
worked by chance on another arch?

Thanks,
Noah

-- 
View this message in context: http://www.nabble.com/section-attribute-producing-invalid-sized-sections-tp20744085p20744424.html
Sent from the gcc - Help mailing list archive at Nabble.com.


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux