Going off of memory, in The Hobbit Gandalf talks about Glamdring amd Orchrist, two swords they get from the trolls, and describes them as “forged in Gondolin during the goblin wars”. Sting came from the same troll horde and it’s assumed that it was a dagger made for an elvish prince.