I am looking for a command or library function that returns the address of a function, the opposite of addr2line.
Currently, I use the following command:
readelf -s ./a.out|grep "\<main\>"|uniq
> 451: 000000000001967f 148 FUNC GLOBAL DEFAULT 14 main