Skip to content

Commit b1576fe

Browse files
powerpc: No need to use dot symbols when branching to a function
binutils is smart enough to know that a branch to a function descriptor is actually a branch to the functions text address. Alan tells me that binutils has been doing this for 9 years. Signed-off-by: Anton Blanchard <anton@samba.org>
1 parent 58aedcc commit b1576fe

26 files changed

Lines changed: 271 additions & 271 deletions

‎arch/powerpc/boot/util.S‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ udelay:
4545
mfspr r4,SPRN_PVR
4646
srwi r4,r4,16
4747
cmpwi 0,r4,1 /* 601 ? */
48-
bne .udelay_not_601
48+
bne .Ludelay_not_601
4949
00: li r0,86 /* Instructions / microsecond? */
5050
mtctr r0
5151
10: addi r0,r0,0 /* NOP */
@@ -54,7 +54,7 @@ udelay:
5454
bne 00b
5555
blr
5656

57-
.udelay_not_601:
57+
.Ludelay_not_601:
5858
mulli r4,r3,1000 /* nanoseconds */
5959
/* Change r4 to be the number of ticks using:
6060
* (nanoseconds + (timebase_period_ns - 1 )) / timebase_period_ns

‎arch/powerpc/include/asm/context_tracking.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
#define _ASM_POWERPC_CONTEXT_TRACKING_H
33

44
#ifdef CONFIG_CONTEXT_TRACKING
5-
#define SCHEDULE_USER bl .schedule_user
5+
#define SCHEDULE_USER bl schedule_user
66
#else
7-
#define SCHEDULE_USER bl .schedule
7+
#define SCHEDULE_USER bl schedule
88
#endif
99

1010
#endif

‎arch/powerpc/include/asm/exception-64e.h‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,18 +174,18 @@ exc_##label##_book3e:
174174
mtlr r16;
175175
#define TLB_MISS_STATS_D(name) \
176176
addi r9,r13,MMSTAT_DSTATS+name; \
177-
bl .tlb_stat_inc;
177+
bl tlb_stat_inc;
178178
#define TLB_MISS_STATS_I(name) \
179179
addi r9,r13,MMSTAT_ISTATS+name; \
180-
bl .tlb_stat_inc;
180+
bl tlb_stat_inc;
181181
#define TLB_MISS_STATS_X(name) \
182182
ld r8,PACA_EXTLB+EX_TLB_ESR(r13); \
183183
cmpdi cr2,r8,-1; \
184184
beq cr2,61f; \
185185
addi r9,r13,MMSTAT_DSTATS+name; \
186186
b 62f; \
187187
61: addi r9,r13,MMSTAT_ISTATS+name; \
188-
62: bl .tlb_stat_inc;
188+
62: bl tlb_stat_inc;
189189
#define TLB_MISS_STATS_SAVE_INFO \
190190
std r14,EX_TLB_ESR(r12); /* save ESR */
191191
#define TLB_MISS_STATS_SAVE_INFO_BOLTED \

‎arch/powerpc/include/asm/exception-64s.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ label##_relon_hv: \
517517
#define DISABLE_INTS RECONCILE_IRQ_STATE(r10,r11)
518518

519519
#define ADD_NVGPRS \
520-
bl .save_nvgprs
520+
bl save_nvgprs
521521

522522
#define RUNLATCH_ON \
523523
BEGIN_FTR_SECTION \

‎arch/powerpc/include/asm/irqflags.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
* have to call a C function so call a wrapper that saves all the
3737
* C-clobbered registers.
3838
*/
39-
#define TRACE_ENABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_on)
40-
#define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(.trace_hardirqs_off)
39+
#define TRACE_ENABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_on)
40+
#define TRACE_DISABLE_INTS TRACE_WITH_FRAME_BUFFER(trace_hardirqs_off)
4141

4242
/*
4343
* This is used by assembly code to soft-disable interrupts first and

‎arch/powerpc/include/asm/ppc_asm.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ BEGIN_FW_FTR_SECTION; \
5757
LDX_BE r10,0,r10; /* get log write index */ \
5858
cmpd cr1,r11,r10; \
5959
beq+ cr1,33f; \
60-
bl .accumulate_stolen_time; \
60+
bl accumulate_stolen_time; \
6161
ld r12,_MSR(r1); \
6262
andi. r10,r12,MSR_PR; /* Restore cr0 (coming from user) */ \
6363
33: \

‎arch/powerpc/kernel/cpu_setup_fsl_booke.S‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,12 +94,12 @@ _GLOBAL(setup_altivec_idle)
9494
_GLOBAL(__setup_cpu_e6500)
9595
mflr r6
9696
#ifdef CONFIG_PPC64
97-
bl .setup_altivec_ivors
97+
bl setup_altivec_ivors
9898
/* Touch IVOR42 only if the CPU supports E.HV category */
9999
mfspr r10,SPRN_MMUCFG
100100
rlwinm. r10,r10,0,MMUCFG_LPIDSIZE
101101
beq 1f
102-
bl .setup_lrat_ivor
102+
bl setup_lrat_ivor
103103
1:
104104
#endif
105105
bl setup_pw20_idle
@@ -164,15 +164,15 @@ _GLOBAL(__setup_cpu_e5500)
164164
#ifdef CONFIG_PPC_BOOK3E_64
165165
_GLOBAL(__restore_cpu_e6500)
166166
mflr r5
167-
bl .setup_altivec_ivors
167+
bl setup_altivec_ivors
168168
/* Touch IVOR42 only if the CPU supports E.HV category */
169169
mfspr r10,SPRN_MMUCFG
170170
rlwinm. r10,r10,0,MMUCFG_LPIDSIZE
171171
beq 1f
172-
bl .setup_lrat_ivor
172+
bl setup_lrat_ivor
173173
1:
174-
bl .setup_pw20_idle
175-
bl .setup_altivec_idle
174+
bl setup_pw20_idle
175+
bl setup_altivec_idle
176176
bl __restore_cpu_e5500
177177
mtlr r5
178178
blr
@@ -181,9 +181,9 @@ _GLOBAL(__restore_cpu_e5500)
181181
mflr r4
182182
bl __e500_icache_setup
183183
bl __e500_dcache_setup
184-
bl .__setup_base_ivors
185-
bl .setup_perfmon_ivor
186-
bl .setup_doorbell_ivors
184+
bl __setup_base_ivors
185+
bl setup_perfmon_ivor
186+
bl setup_doorbell_ivors
187187
/*
188188
* We only want to touch IVOR38-41 if we're running on hardware
189189
* that supports category E.HV. The architectural way to determine
@@ -192,7 +192,7 @@ _GLOBAL(__restore_cpu_e5500)
192192
mfspr r10,SPRN_MMUCFG
193193
rlwinm. r10,r10,0,MMUCFG_LPIDSIZE
194194
beq 1f
195-
bl .setup_ehv_ivors
195+
bl setup_ehv_ivors
196196
1:
197197
mtlr r4
198198
blr
@@ -201,9 +201,9 @@ _GLOBAL(__setup_cpu_e5500)
201201
mflr r5
202202
bl __e500_icache_setup
203203
bl __e500_dcache_setup
204-
bl .__setup_base_ivors
205-
bl .setup_perfmon_ivor
206-
bl .setup_doorbell_ivors
204+
bl __setup_base_ivors
205+
bl setup_perfmon_ivor
206+
bl setup_doorbell_ivors
207207
/*
208208
* We only want to touch IVOR38-41 if we're running on hardware
209209
* that supports category E.HV. The architectural way to determine
@@ -212,7 +212,7 @@ _GLOBAL(__setup_cpu_e5500)
212212
mfspr r10,SPRN_MMUCFG
213213
rlwinm. r10,r10,0,MMUCFG_LPIDSIZE
214214
beq 1f
215-
bl .setup_ehv_ivors
215+
bl setup_ehv_ivors
216216
b 2f
217217
1:
218218
ld r10,CPU_SPEC_FEATURES(r4)

0 commit comments

Comments
 (0)