(1):

(n.) A strongly fortified town on the south coast of Spain, held by the British since 1704; hence, an impregnable stronghold.

(2):

(n.) A kind of candy sweetmeat, or a piece of it; - called, in full, Gibraltar rock.