Re-add gc-sections and as-needed LDFLAGS