summaryrefslogtreecommitdiff
path: root/external/cddl/dtracetoolkit/dist/Code/Perl/func_malloc.pl
blob: 5340c82b2cdce29a1e892a8886088d45d696a172 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!./perl -w

sub func_c {
	print "Function C\n";
}

sub func_b {
	print "Function B\n";
	my $b = "B" x 100_000;
	func_c();
}

sub func_a {
	print "Function A\n";
	func_b();
}

func_a();
bc49d68b26eff7a8a9c5'>binutils 2.19 has changed the old behaviour of defining __start_SECTNAMEpooka for orphaned sections to using PROVIDE. What this means is that unless a rump component internally references that symbol, it will not be included in the component shared library, and hence cannot be referenced when the component is loaded. Add a workaround which works both with 2.16 and 2.19: force a reference to the __start symbol internally and hence retain it in the resulting library. 2009-05-28Use a bunch of weak symbols to determine which network componentspooka are present. This works in userspace as opposed relying in link sets, which fail miserably. Later, when the networking stack becomes modularized, we can move to a dynamic scheme like with file systems. Also, this change allows us to do proper autoconfig, namely attach the loopback interface iff it is present. 2009-02-08Add a PF_LOCAL rump kernel component.pooka