[patch #9968] Update __multi[hs]i_const_10 functions to detect them as function in the ELF object

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch #9968] Update __multi[hs]i_const_10 functions to detect them as function in the ELF object

Kevin Cuzner-2
URL:
  <https://savannah.nongnu.org/patch/?9968>

                 Summary: Update __multi[hs]i_const_10 functions to detect
them as function in the ELF object
                 Project: AVR C Runtime Library
            Submitted by: pitchumani
            Submitted on: Wed 26 Aug 2020 09:11:13 AM UTC
                Category: None
                Priority: 5 - Normal
                  Status: Works For Me
                 Privacy: Public
             Assigned to: pitchumani
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

The __mul[hs]i_const_10 functions are defined in assembly, but these symbols'
types are unknown ("NOTYPE") in ELF object.

Example:
$ avr-readelf -s ~/install/avr/lib/avrxmega3/libc.a | grep "_const_10"
     6: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __mulhi_const_10
     6: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __mulsi_const_10
     5: 00000000     0 NOTYPE  GLOBAL DEFAULT    4 __mulsi_const_10
     5: 00000000     0 NOTYPE  GLOBAL DEFAULT    4 __mulhi_const_10

The attached patch updates these functions type and also adds .size
attribute.
Output after applying this patch:
$ avr-readelf -s ~/install/avr/lib/avrxmega3/libc.a | grep "_const_10"
     6: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __mulhi_const_10
     6: 00000000     0 NOTYPE  GLOBAL DEFAULT  UND __mulsi_const_10
     5: 00000000    42 FUNC    GLOBAL DEFAULT    4 __mulsi_const_10
     5: 00000000    16 FUNC    GLOBAL DEFAULT    4 __mulhi_const_10




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Wed 26 Aug 2020 09:11:13 AM UTC  Name: mulhi_si_const_10.patch  Size:
1KiB   By: pitchumani

<http://savannah.nongnu.org/patch/download.php?file_id=49708>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9968>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/


Reply | Threaded
Open this post in threaded view
|

[patch #9968] Update __mul[hs]i_const_10 functions to detect them as function in the ELF object

Kevin Cuzner-2
Update of patch #9968 (project avr-libc):

                 Summary: Update __multi[hs]i_const_10 functions to detect
them as function in the ELF object => Update __mul[hs]i_const_10 functions to
detect them as function in the ELF object


    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9968>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/