[libc] Add an optional `NAME` argument to `add_entrypoint_object` rule.