[PATCH] Remove no longer applicable assertion.

David Miller davem@davemloft.net
Fri Apr 6 09:27:00 GMT 2012


From: "Carlos O'Donell" <carlos@systemhalted.org>
Date: Fri, 6 Apr 2012 05:17:17 -0400

> Would the following be more optimal?

Well, it's taking another step.  My changes accomodated the case where
there is no DT_REL(A) present at all, as did the existing code.

But with your change, we are assuming that a DT_REL(A) is always
present.

And if you think it's OK to assume that, then you can also turn the
first if() statement in this macro:

    if ((map)->l_info[DT_##RELOC])

into an assertion and just cons up ranges[0] unconditionally.



More information about the Libc-alpha mailing list