eal: add macro for attribute weak