You likely mean The Running Man (1987), starring Arnold Schwarzenegger. The character Dynamo (played by Richard Dawson—who was of average height, not a dwarf) is a flamboyant, opera-singing "stalker" in the game show, not the protagonist's friend. He is an antagonist.
If you recall a little person actor as a hero's sidekick, candidates include:
Clarify era, genre, or actor for precise ID.