--- ebtables-v2.0.10-4.orig/extensions/Makefile +++ ebtables-v2.0.10-4/extensions/Makefile @@ -11,13 +11,13 @@ EXT_LIBSI+=$(foreach T,$(EXT_TABLES), -lebtable_$(T)) extensions/ebt_%.so: extensions/ebt_%.o - $(CC) $(LDFLAGS) -shared -o $@ -lc $< -nostartfiles + $(CC) $(LDFLAGS) -shared -o $@ -lc $< extensions/libebt_%.so: extensions/ebt_%.so mv $< $@ extensions/ebtable_%.so: extensions/ebtable_%.o - $(CC) $(LDFLAGS) -shared -o $@ -lc $< -nostartfiles + $(CC) $(LDFLAGS) -shared -o $@ -lc $< extensions/libebtable_%.so: extensions/ebtable_%.so mv $< $@ --- ebtables-v2.0.10-4.orig/extensions/ebt_802_3.c +++ ebtables-v2.0.10-4/extensions/ebt_802_3.c @@ -141,7 +141,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&_802_3_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_among.c +++ ebtables-v2.0.10-4/extensions/ebt_among.c @@ -491,7 +491,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&among_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_arp.c +++ ebtables-v2.0.10-4/extensions/ebt_arp.c @@ -362,7 +362,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&arp_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_arpreply.c +++ ebtables-v2.0.10-4/extensions/ebt_arpreply.c @@ -133,7 +133,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_target(&arpreply_target); } --- ebtables-v2.0.10-4.orig/extensions/ebt_ip.c +++ ebtables-v2.0.10-4/extensions/ebt_ip.c @@ -338,7 +338,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&ip_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_ip6.c +++ ebtables-v2.0.10-4/extensions/ebt_ip6.c @@ -556,7 +556,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&ip6_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_limit.c +++ ebtables-v2.0.10-4/extensions/ebt_limit.c @@ -212,7 +212,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&limit_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_log.c +++ ebtables-v2.0.10-4/extensions/ebt_log.c @@ -217,7 +217,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_watcher(&log_watcher); } --- ebtables-v2.0.10-4.orig/extensions/ebt_mark.c +++ ebtables-v2.0.10-4/extensions/ebt_mark.c @@ -172,7 +172,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_target(&mark_target); } --- ebtables-v2.0.10-4.orig/extensions/ebt_mark_m.c +++ ebtables-v2.0.10-4/extensions/ebt_mark_m.c @@ -121,7 +121,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&mark_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_nat.c +++ ebtables-v2.0.10-4/extensions/ebt_nat.c @@ -231,7 +231,7 @@ .extra_ops = opts_d, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_target(&snat_target); ebt_register_target(&dnat_target); --- ebtables-v2.0.10-4.orig/extensions/ebt_nflog.c +++ ebtables-v2.0.10-4/extensions/ebt_nflog.c @@ -166,7 +166,7 @@ .extra_ops = nflog_opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_watcher(&nflog_watcher); } --- ebtables-v2.0.10-4.orig/extensions/ebt_pkttype.c +++ ebtables-v2.0.10-4/extensions/ebt_pkttype.c @@ -125,7 +125,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&pkttype_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_redirect.c +++ ebtables-v2.0.10-4/extensions/ebt_redirect.c @@ -108,7 +108,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_target(&redirect_target); } --- ebtables-v2.0.10-4.orig/extensions/ebt_standard.c +++ ebtables-v2.0.10-4/extensions/ebt_standard.c @@ -84,7 +84,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_target(&standard); } --- ebtables-v2.0.10-4.orig/extensions/ebt_stp.c +++ ebtables-v2.0.10-4/extensions/ebt_stp.c @@ -337,7 +337,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&stp_match); } --- ebtables-v2.0.10-4.orig/extensions/ebt_ulog.c +++ ebtables-v2.0.10-4/extensions/ebt_ulog.c @@ -180,7 +180,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_watcher(&ulog_watcher); } --- ebtables-v2.0.10-4.orig/extensions/ebt_vlan.c +++ ebtables-v2.0.10-4/extensions/ebt_vlan.c @@ -181,7 +181,7 @@ .extra_ops = opts, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_match(&vlan_match); } --- ebtables-v2.0.10-4.orig/extensions/ebtable_broute.c +++ ebtables-v2.0.10-4/extensions/ebtable_broute.c @@ -23,7 +23,7 @@ .help = print_help, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_table(&table); } --- ebtables-v2.0.10-4.orig/extensions/ebtable_filter.c +++ ebtables-v2.0.10-4/extensions/ebtable_filter.c @@ -29,7 +29,7 @@ .help = print_help, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_table(&table); } --- ebtables-v2.0.10-4.orig/extensions/ebtable_nat.c +++ ebtables-v2.0.10-4/extensions/ebtable_nat.c @@ -30,7 +30,7 @@ .help = print_help, }; -void _init(void) +__attribute__((constructor)) static void extension_init(void) { ebt_register_table(&table); }