summaryrefslogtreecommitdiff
path: root/ext/aix_mksym.rb
blob: 34b0de727e6d1d3d6e4d20dd6f279e458f0f60b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12

data = []
IO.foreach("|/usr/ccs/bin/nm -p #{ARGV[0]}") do |line|
  line = line.split
  case line[1]
  when "B", "D"
    data << line[0]
  end
end
data.uniq!
data.sort!
open(ARGV[1], "w") {|exp| exp.puts "#!", data}