binutils 2.11-CVS won't link GCC 3.0-snap's libobjc.so on Red Hat

H . J . Lu hjl@lucon.org
Wed Jul 11 14:26:00 GMT 2001


On Wed, Jul 11, 2001 at 02:15:53PM -0700, Richard Henderson wrote:
> On Tue, Jul 10, 2001 at 09:39:50PM -0700, H . J . Lu wrote:
> > -						 ((sec->flags & (SEC_ALLOC
> > -								 | SEC_LOAD))
> > +						 (((sec->flags
> > +						    & SEC_DEBUGGING)
> > +						   ? (sec->flags
> > +						      & (SEC_ALLOC
> > +							 | SEC_LOAD))
> > +						   : (SEC_ALLOC
> > +						      | SEC_LOAD))
> 
> Why should SEC_DEBUGGING be involved?  Why not
> 
> 	sec->flags & SEC_ALLOC ? SEC_ALLOC | SEC_LOAD : 0

That should work.


H.J.



More information about the Binutils mailing list