Fix for alignment of .stab section in sh-pe gas

Joern Rennecke amylaar@cygnus.co.uk
Wed Mar 29 11:23:00 GMT 2000


> 	* config/tc-sh.h (SUB_SEGMENT_ALIGN): Give the .stab section an
> 	alignment of 2 and the .stabstr section an alignment of 0.

So why are you still suppressing the effect of the -small option?

> 	* config/tc-sh.c (sh_cons_align): Do not generate alignment
> 	frags in the .stab section.

Do you want to suppress the alignment because the data is in the stab
section, or because it's a .stabn / .stabs pseudo-op?
If the answer is the latter, then you can do that by using special
functions to process stabn / stabs, which set sh_no_align_cons before
calling s_stab.
The s_uacons function in tc-sh.c aleady uses sh_no_align_cons to
implement .uaword.


More information about the Binutils mailing list