Original comment:
Yes, to convert from UNIX time to UTC, you do need a list of leap seconds.
http://git.musl-libc.org/cgit/musl/tree/src/time/timegm.c
http://git.musl-libc.org/cgit/musl/tree/src/time/__tm_to_sec...
You'll notice there is no handling or knowledge of leap seconds. (Leap years are handled, of course.)