[libgloss,microblaze] libgloss: microblaze: adjust handlers to be weak.

Message ID 1525297832-27888-1-git-send-email-ben.levinsky@xilinx.com
State New
Headers show
Series
  • [libgloss,microblaze] libgloss: microblaze: adjust handlers to be weak.
Related show

Commit Message

Ben Levinsky May 2, 2018, 9:50 p.m.
Previously, hw exception handler stub and interrupt handler stub for microbaze were unable to
be overwritten. Change to weak to fix this.

Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>

---
 libgloss/microblaze/_hw_exception_handler.S | 3 ++-
 libgloss/microblaze/_interrupt_handler.S    | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

-- 
2.7.4

Comments

Jeff Johnston May 3, 2018, 7:17 p.m. | #1
Patch applied.

-- Jeff J.

On Wed, May 2, 2018 at 5:50 PM, Ben Levinsky <ben.levinsky@xilinx.com>
wrote:

> Previously, hw exception handler stub and interrupt handler stub for

> microbaze were unable to

> be overwritten. Change to weak to fix this.

>

> Signed-off-by: Ben Levinsky <ben.levinsky@xilinx.com>

> ---

>  libgloss/microblaze/_hw_exception_handler.S | 3 ++-

>  libgloss/microblaze/_interrupt_handler.S    | 3 ++-

>  2 files changed, 4 insertions(+), 2 deletions(-)

>

> diff --git a/libgloss/microblaze/_hw_exception_handler.S

> b/libgloss/microblaze/_hw_exception_handler.S

> index bb729ca..47df945 100644

> --- a/libgloss/microblaze/_hw_exception_handler.S

> +++ b/libgloss/microblaze/_hw_exception_handler.S

> @@ -30,7 +30,8 @@

>  */

>

>         .text

> -       .globl _hw_exception_handler    # HW Exception Handler Label

> +       .weakext _hw_exception_handler    # HW Exception Handler Label

> +       .type _hw_exception_handler, %function

>         .align 2

>

>         _hw_exception_handler:

> diff --git a/libgloss/microblaze/_interrupt_handler.S

> b/libgloss/microblaze/_interrupt_handler.S

> index 844c7d0..5bb7329 100644

> --- a/libgloss/microblaze/_interrupt_handler.S

> +++ b/libgloss/microblaze/_interrupt_handler.S

> @@ -30,7 +30,8 @@

>  */

>

>         .text

> -       .globl _interrupt_handler    # Interrupt Handler Label

> +       .weakext _interrupt_handler    # Interrupt Handler Label

> +       .type _interrupt_handler, %function

>         .align 2

>

>         _interrupt_handler:

> --

> 2.7.4

>

>

Patch

diff --git a/libgloss/microblaze/_hw_exception_handler.S b/libgloss/microblaze/_hw_exception_handler.S
index bb729ca..47df945 100644
--- a/libgloss/microblaze/_hw_exception_handler.S
+++ b/libgloss/microblaze/_hw_exception_handler.S
@@ -30,7 +30,8 @@ 
 */
 
 	.text
-	.globl _hw_exception_handler    # HW Exception Handler Label 
+	.weakext _hw_exception_handler    # HW Exception Handler Label
+	.type _hw_exception_handler, %function
 	.align 2
 	
 	_hw_exception_handler:
diff --git a/libgloss/microblaze/_interrupt_handler.S b/libgloss/microblaze/_interrupt_handler.S
index 844c7d0..5bb7329 100644
--- a/libgloss/microblaze/_interrupt_handler.S
+++ b/libgloss/microblaze/_interrupt_handler.S
@@ -30,7 +30,8 @@ 
 */
 
 	.text
-	.globl _interrupt_handler    # Interrupt Handler Label 
+	.weakext _interrupt_handler    # Interrupt Handler Label
+	.type _interrupt_handler, %function
 	.align 2
 
 	_interrupt_handler: