recordmcount.pl (daab7fc734a53fdeaf844b7c03053118ad1769da) recordmcount.pl (3b6c223b1b97ad60bbb0f4efda57d649414ac2a2)
1#!/usr/bin/perl -w
2# (c) 2008, Steven Rostedt <srostedt@redhat.com>
3# Licensed under the terms of the GNU GPL License version 2
4#
5# recordmcount.pl - makes a section called __mcount_loc that holds
6# all the offsets to the calls to mcount.
7#
8#

--- 256 unchanged lines hidden (view full) ---

265
266 if ($bits == 64) {
267 $type = ".quad";
268 }
269
270} elsif ($arch eq "arm") {
271 $alignment = 2;
272 $section_type = '%progbits';
1#!/usr/bin/perl -w
2# (c) 2008, Steven Rostedt <srostedt@redhat.com>
3# Licensed under the terms of the GNU GPL License version 2
4#
5# recordmcount.pl - makes a section called __mcount_loc that holds
6# all the offsets to the calls to mcount.
7#
8#

--- 256 unchanged lines hidden (view full) ---

265
266 if ($bits == 64) {
267 $type = ".quad";
268 }
269
270} elsif ($arch eq "arm") {
271 $alignment = 2;
272 $section_type = '%progbits';
273 $mcount_regex = "^\\s*([0-9a-fA-F]+):\\s*R_ARM_(CALL|PC24)" .
274 "\\s+(__gnu_mcount_nc|mcount)\$";
273
274} elsif ($arch eq "ia64") {
275 $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$";
276 $type = "data8";
277
278 if ($is_module eq "0") {
279 $cc .= " -mconstant-gp";
280 }

--- 311 unchanged lines hidden ---
275
276} elsif ($arch eq "ia64") {
277 $mcount_regex = "^\\s*([0-9a-fA-F]+):.*\\s_mcount\$";
278 $type = "data8";
279
280 if ($is_module eq "0") {
281 $cc .= " -mconstant-gp";
282 }

--- 311 unchanged lines hidden ---