How is the gerund used in the sentence?

All entries will be distributed for judging.

A.
subject

B.
predicate nominative

C.
object of a preposition

D.
direct object

C or D