This is the mail archive of the binutils@sourceware.cygnus.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


> 	* 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.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]