New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deal with fill value in .bss sections #27
Comments
I believe the following in emx.h drive this:
&
|
Looks like the padding may be the issue, that's a point of difference compared to other architectures. I'll do some testing over the weekend |
Confirming that changing ASM_OUTPUT_ALIGN to remove the bird changes, ie to
stops the warning being generated. Now we just need to understand why bird changed the definition away from the "standard" definition |
the question is also, could it have been like that in the old gcc 335 times. |
@SilvanScherrer yes it is the same in gcc 3.3.5 - that header originates from GCC 3.3.5 |
I more meant, if the origin was like that in 335. As the emx.h is probably a adjusted copy of another .h. And it might well be that back then the .bss was treated different. |
My assumption based on the comment " bird: Pad using int 3." is that he added the 0xcc. Just confirmed that no other headers include 0xcc in the ASM_OUTPUT_ALIGN definition for GCC 3.3.5 |
BSS sections are initialized with zeroes and specifying a non-zero value in
.align
directives causes latest binutils to barf with this on code generated by GCC:The related binutils for OS/2 ticket containing an example and a suggested solution is here: http://trac.netlabs.org/ports/ticket/165.
The text was updated successfully, but these errors were encountered: