[Bug 1105496] [NEW] ld creates libraries with executable permissions

Sworddragon 1105496 at bugs.launchpad.net
Fri Jan 25 22:35:57 UTC 2013


Public bug reported:

I'm using Ubuntu 13.04 dev with binutils 2.23.1-0ubuntu6. On creating a
library with ld it sets executable permissions. Here is an example:

sworddragon at ubuntu:~/data$ gcc -c test.c -fPIC
sworddragon at ubuntu:~/data$ ld -shared -soname test.so -o test.so test.o
sworddragon at ubuntu:~/data$ ls -l test.o test.so
-rw------- 1 sworddragon sworddragon 1224 Jan 25 23:34 test.o
-rwx------ 1 sworddragon sworddragon 2068 Jan 25 23:34 test.so

** Affects: binutils (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to binutils in Ubuntu.
https://bugs.launchpad.net/bugs/1105496

Title:
  ld creates libraries with executable permissions

Status in “binutils” package in Ubuntu:
  New

Bug description:
  I'm using Ubuntu 13.04 dev with binutils 2.23.1-0ubuntu6. On creating
  a library with ld it sets executable permissions. Here is an example:

  sworddragon at ubuntu:~/data$ gcc -c test.c -fPIC
  sworddragon at ubuntu:~/data$ ld -shared -soname test.so -o test.so test.o
  sworddragon at ubuntu:~/data$ ls -l test.o test.so
  -rw------- 1 sworddragon sworddragon 1224 Jan 25 23:34 test.o
  -rwx------ 1 sworddragon sworddragon 2068 Jan 25 23:34 test.so

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/1105496/+subscriptions




More information about the foundations-bugs mailing list